felixYyu opened a new issue #3494:
URL: https://github.com/apache/iceberg/issues/3494
val spark = SparkSession
.builder()
.master("local[2]")
.appName("IcebergAPI")
.config("spark.sql.catalog.hadoop_prod",
"org.apache.iceberg.spark.SparkCatalog")
.config("spark.sql.catalog.hadoop_prod.type", "hadoop")
.config("spark.sql.catalog.hadoop_prod.warehouse",
"file:///D:\\lake-iceberg")
.config("spark.sql.extensions",
"org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions")
.config("spark.sql.sources.partitionOverwriteMode", "dynamic")
.config("spark.sql.iceberg.handle-timestamp-without-timezone", "true")
.config("spark.sql.session.timeZone", "Asia/Shanghai")// user local
timeZone
.getOrCreate()
In this case, user local timeZone has been setted "Asia/Shanghai", but
inserted data's timeZone is still “UTC”.
How to setting user local timeZome? 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]