yihua opened a new issue, #20816:
URL: https://github.com/apache/hudi/issues/20816

   A Spark SQL write to a table partitioned by a TIMESTAMP column fails with 
`Invalid format` when the partition value has more than one fractional digit, 
e.g. `TIMESTAMP '2024-02-29 10:30:00.123'`. On the Row and InternalRow paths 
(the Spark record path and the bulk insert row writer), `SqlKeyGenerator` 
parses the string the delegate key generator printed from a 
`java.sql.Timestamp` with the Joda pattern `yyyy-MM-dd HH:mm:ss.S`, which 
accepts a single fractional digit. The Avro path does not parse that string and 
truncates the value to whole seconds.
   
   Proposal: parse up to nine fractional digits on the row paths, so they 
truncate to whole seconds as the Avro path does.
   


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