cloud-fan commented on a change in pull request #27999: [SPARK-31232][SQL][DOCS] Specify formats of `spark.sql.session.timeZone` URL: https://github.com/apache/spark/pull/27999#discussion_r397587706
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ########## @@ -1675,14 +1675,15 @@ object SQLConf { Try { DateTimeUtils.getZoneId(zone) }.isSuccess } - val SESSION_LOCAL_TIMEZONE = - buildConf("spark.sql.session.timeZone") - .doc("""The ID of session local timezone, e.g. "GMT", "America/Los_Angeles", etc.""") - .version("2.2.0") - .stringConf - .checkValue(isValidTimezone, s"Cannot resolve the given timezone with" + - " ZoneId.of(_, ZoneId.SHORT_IDS)") - .createWithDefaultFunction(() => TimeZone.getDefault.getID) + val SESSION_LOCAL_TIMEZONE = buildConf("spark.sql.session.timeZone") + .doc("The ID of session local timezone in the format of either region-based zone IDs or " + + "zone offsets. Region IDs must have the form 'area/city', such as 'America/Los_Angeles'. " + + "Zone offsets must be in the format '(+|-)HH:mm', for example '-08:00' or '+01:00'.") Review comment: good idea! ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org