[
https://issues.apache.org/jira/browse/HUDI-2114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17372787#comment-17372787
]
ASF GitHub Bot commented on HUDI-2114:
--------------------------------------
pengzhiwei2018 commented on a change in pull request #3208:
URL: https://github.com/apache/hudi/pull/3208#discussion_r662289183
##########
File path:
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/hudi/MergeOnReadSnapshotRelation.scala
##########
@@ -211,4 +205,15 @@ object MergeOnReadSnapshotRelation {
// when create PartitionedFile.
path.toUri.toString
}
+
+ def getRequiredSchema(tableAvroSchema: Schema, requiredColumns:
Array[String]): (Schema, StructType) = {
+ // First get the required avro-schema, the convert the avro-schema to
spark schema.
Review comment:
fixed!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Spark Query MOR Table Written By Flink Return Incorrect Timestamp Value
> -----------------------------------------------------------------------
>
> Key: HUDI-2114
> URL: https://issues.apache.org/jira/browse/HUDI-2114
> Project: Apache Hudi
> Issue Type: Bug
> Components: Spark Integration
> Reporter: pengzhiwei
> Assignee: pengzhiwei
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.9.0, 0.10.0
>
>
> Write a MOR table by flink like this:
> {code:java}
> create table h0 (
> uuid varchar(20),
> name varchar(10),
> ts timestamp(3)
> ) with (
> 'connector' = 'hudi',
> 'path' = '/xx/xx/',
> 'table.type' = 'MERGE_ON_READ'
> );
> insert into h0 values('id1', 'jim', TIMESTAMP '2021-01-01 00:00:01'){code}
> Query the table by spark will return a incorrect *ts* value:
> {code:java}
> 'id', 'jim', 1970-01-20 03:22:34.849144{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)