cloud-fan commented on a change in pull request #27915: [SPARK-31159][SQL] 
Rebase date/timestamp from/to Julian calendar in parquet
URL: https://github.com/apache/spark/pull/27915#discussion_r394086429
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetWriteSupport.scala
 ##########
 @@ -77,6 +77,9 @@ class ParquetWriteSupport extends WriteSupport[InternalRow] 
with Logging {
   private val decimalBuffer =
     new Array[Byte](Decimal.minBytesForPrecision(DecimalType.MAX_PRECISION))
 
+  // Whether to rebase datetimes from Gregorian to Julian calendar in write
+  private var rebaseDateTime: Boolean = _
 
 Review comment:
   how about `private val rebaseDateTime = 
SQLConf.get.parquetRebaseDateTimeEnabled`?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to