szingerpeter commented on issue #7724:
URL: https://github.com/apache/hudi/issues/7724#issuecomment-1402637185
update:
if i don't specify the table in advance in hive, but let hudi sync and
create a new table it works with artificially adding the `.000001`.
I know it's becoming a bit of a spark-specific question, but do you have an
idea on how to cast to timestamp with MS precision with 0 MS?
```
spark.createDataFrame([['2022-01-01 01:01:01.000000']]).withColumn('test',
F.col('_1').cast('timestamp')).show(10, False)
+--------------------------+-------------------+
|_1 |test |
+--------------------------+-------------------+
|2022-01-01 01:01:01.000000|2022-01-01 01:01:01|
+--------------------------+-------------------+
```
--
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]