lucasmo commented on pull request #3391:
URL: https://github.com/apache/hudi/pull/3391#issuecomment-1018006956


   I was directed to add a comment here from hudi slack.
   
   Our team us experimenting with MOR tables. Our write ecosystem is AWS Glue 
and our query ecosystem for this use case is AWS Athena. Our writes are working 
fine. However, when querying with Athena, we get the following error:
   > GENERIC_INTERNAL_ERROR: org.apache.hadoop.io.LongWritable cannot be cast 
to org.apache.hadoop.hive.serde2.io.TimestampWritable
   
   This error occurs if we choose to select any timestamp field. Selecting only 
non-timestamp fields works correctly. We searched and found no working 
resolution.
   
   Our table looks like this:
   ```
   CREATE EXTERNAL TABLE `foo_table_mor`(
     `foo_id` bigint, 
     `foo_timestamp` timestamp, 
     `_hoodie_commit_time` string, 
     `_hoodie_commit_seqno` string, 
     `_hoodie_record_key` string, 
     `_hoodie_partition_path` string, 
     `_hoodie_file_name` string)
   ROW FORMAT SERDE 
     'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' 
   STORED AS INPUTFORMAT 
     'org.apache.hudi.hadoop.realtime.HoodieParquetRealtimeInputFormat' 
   OUTPUTFORMAT 
     'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
   LOCATION
     's3://foo-bucket/foo-prefix/'
   ```


-- 
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]


Reply via email to