[ https://issues.apache.org/jira/browse/PARQUET-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17570233#comment-17570233 ]
ASF GitHub Bot commented on PARQUET-2167: ----------------------------------------- bryanck opened a new pull request, #980: URL: https://github.com/apache/parquet-mr/pull/980 This PR fixes an issue when attempting to use the CLI to view the footer of a file with date fields. The error thrown is ```com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.ZoneOffset` not supported by default```. The fix is to register the JavaTimeModue() with the Jackson object mapper. Make sure you have checked _all_ steps below. ### Jira - [X ] My PR addresses the following [Parquet Jira](https://issues.apache.org/jira/browse/PARQUET/) issues and references them in the PR title. For example, "PARQUET-1234: My Parquet PR" - https://issues.apache.org/jira/browse/PARQUET-2167 - In case you are adding a dependency, check if the license complies with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). ### Tests - [ ] My PR adds the following unit tests __OR__ does not need testing for this extremely good reason: This is a minimal code change that existing tests should cover. ### Commits - [ X] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)": 1. Subject is separated from body by a blank line 1. Subject is limited to 50 characters (not including Jira issue reference) 1. Subject does not end with a period 1. Subject uses the imperative mood ("add", not "adding") 1. Body wraps at 72 characters 1. Body explains "what" and "why", not "how" ### Documentation - [ ] In case of new functionality, my PR adds documentation that describes how to use it. - All the public functions and the classes in the PR contain Javadoc that explain what it does > CLI show footer command fails if Parquet file contains date fields > ------------------------------------------------------------------ > > Key: PARQUET-2167 > URL: https://issues.apache.org/jira/browse/PARQUET-2167 > Project: Parquet > Issue Type: Bug > Components: parquet-cli > Affects Versions: 1.12.2 > Reporter: Bryan Keller > Priority: Minor > > The show footer command in the CLI fails with the following error if run > against a file with date fields: > com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 > date/time type `java.time.ZoneOffset` not supported by default: add Module > "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling > (through reference chain: > org.apache.parquet.hadoop.metadata.ParquetMetadata["blocks"]->java.util.ArrayList[0]->org.apache.parquet.hadoop.metadata.BlockMetaData["columns"]->java.util.ArrayList[2]->org.apache.parquet.hadoop.metadata.IntColumnChunkMetaData["statistics"]->org.apache.parquet.column.statistics.IntStatistics["stringifier"]->org.apache.parquet.schema.PrimitiveStringifier$5["formatter"]->java.time.format.DateTimeFormatter["zone"]) -- This message was sent by Atlassian Jira (v8.20.10#820010)