Github user ueshin commented on a diff in the pull request: https://github.com/apache/spark/pull/16308#discussion_r92973560 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala --- @@ -111,7 +112,8 @@ case class CatalogTablePartition( */ def toRow(partitionSchema: StructType): InternalRow = { InternalRow.fromSeq(partitionSchema.map { field => - Cast(Literal(spec(field.name)), field.dataType).eval() + Cast(Literal(spec(field.name)), field.dataType, + DateTimeUtils.defaultTimeZone().getID).eval() --- End diff -- Currently the behavior doesn't change by timezone setting, i.e. using system timezone. This is a part that I was not sure which we should handle the partition values, use timezone settings or system timezone. Should we use timezone settings?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org