You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "lschampion (via GitHub)" <gi...@apache.org> on 2023/07/18 02:47:48 UTC
[GitHub] [hudi] lschampion opened a new issue, #9222: [SUPPORT] hive sync do not support, which a error
lschampion opened a new issue, #9222:
URL: https://github.com/apache/hudi/issues/9222
**_Tips before filing an issue_**
- Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
- Join the mailing list to engage in conversations and get faster support at dev-subscribe@hudi.apache.org.
- If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
yes
**Describe the problem you faced** A clear and concise description of the problem.
Caused by: java.lang.IllegalArgumentException: Unexpected type: INT64
at org.apache.flink.hive.shaded.parquet.Preconditions.checkArgument(Preconditions.java:73)
at org.apache.flink.hive.shaded.formats.parquet.vector.ParquetSplitReaderUtil.createWritableColumnVector(ParquetSplitReaderUtil.java:369)
at org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createWritableVectors(ParquetVectorizedInputFormat.java:264)
at org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createReaderBatch(ParquetVectorizedInputFormat.java:254)
at org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createPoolOfBatches(ParquetVectorizedInputFormat.java:244)
at org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createReader(ParquetVectorizedInputFormat.java:137)
at org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createReader(ParquetVectorizedInputFormat.java:73)
at org.apache.flink.connectors.hive.read.HiveBulkFormatAdapter.createReader(HiveBulkFormatAdapter.java:110)
at org.apache.flink.connectors.hive.read.HiveBulkFormatAdapter.createReader(HiveBulkFormatAdapter.java:65)
at org.apache.flink.connector.file.src.impl.FileSourceSplitReader.checkSplitOrStartNext(FileSourceSplitReader.java:112)
at org.apache.flink.connector.file.src.impl.FileSourceSplitReader.fetch(FileSourceSplitReader.java:65)
at org.apache.flink.connector.base.source.reader.fetcher.FetchTask.run(FetchTask.java:56)
at org.apache.flink.connector.base.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:140)
... 6 more
to trigger this problem:
(1) flink stream API(HoodiePipeline.builder.sink) ,and build.column("create_time timestamp(6)");
(2)turn on hive sync ,using op.put(FlinkOptions.HIVE_SYNC_ENABLED.key(), Boolean.TRUE.toString());
(3)finally found created table in flink hive-catalog,but the timestamp type is "timestamp(9)"
(4)read hive doc found hive do not support to specify precision for timestamp, and default precison is 9;
(5)read hudi source code, found the route for hive sync is :
avro schema --> parquet MessageType ---> hive FieldSchema
for avro timestamp_micros input then a type timestamp of FieldSchema as output, the precsision is discard.
A clear and concise description of what you expected to happen.
**Environment Description**
* Hudi version :
1.13.1
* Spark version :
2.4.0
* Hive version :
2.1.1
* Hadoop version :
3.0.0
* Storage (HDFS/S3/GCS..) :
hdfs
* Running on Docker? (yes/no) :
no
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [SUPPORT] hive sync do not support specify timestamp precision, which a error when read. [hudi]
Posted by "codope (via GitHub)" <gi...@apache.org>.
codope closed issue #9222: [SUPPORT] hive sync do not support specify timestamp precision, which a error when read.
URL: https://github.com/apache/hudi/issues/9222
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [SUPPORT] hive sync do not support specify timestamp precision, which a error when read. [hudi]
Posted by "ad1happy2go (via GitHub)" <gi...@apache.org>.
ad1happy2go commented on issue #9222:
URL: https://github.com/apache/hudi/issues/9222#issuecomment-1801296418
@lschampion Closing this out. Please reopen or create a new one in case of any issues. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] danny0405 commented on issue #9222: [SUPPORT] hive sync do not support specify timestamp precision, which a error when read.
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on issue #9222:
URL: https://github.com/apache/hudi/issues/9222#issuecomment-1641589983
Yeah, Hive does not even support precision for timestamp, but you can set up the precision as a configuration in Hive, by default it is 9.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org