You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2025/11/07 21:21:30 UTC

[I] [EPIC] [DISCUSS] Comet timezone handling [datafusion-comet]

andygrove opened a new issue, #2733:
URL: https://github.com/apache/datafusion-comet/issues/2733

   ### What is the problem the feature request solves?
   
   Comet currently assumes that all native processing uses the UTC timezone. When reading from Parquet sources, Comet converts timestamps to UTC.
   
   ```
         String timeZoneId = conf.get("spark.sql.session.timeZone");
         // Native code uses "UTC" always as the timeZoneId when converting from spark to arrow schema.
         Schema arrowSchema = Utils$.MODULE$.toArrowSchema(sparkSchema, "UTC");
         byte[] serializedRequestedArrowSchema = serializeArrowSchema(arrowSchema);
         Schema dataArrowSchema = Utils$.MODULE$.toArrowSchema(dataSchema, "UTC");
         byte[] serializedDataArrowSchema = serializeArrowSchema(dataArrowSchema);
   ```
   
   However, we are now seeing that this causes correctness issues or exceptions when the data source is not Parquet:
   
   - https://github.com/apache/datafusion-comet/issues/2720
   - https://github.com/apache/datafusion-comet/issues/2649
   
   This epic is for reviewing and discussing Comet's approach to time zones.
   
   
   ### Describe the potential solution
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] [DISCUSS] Comet timezone handling [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #2733: [EPIC] [DISCUSS] Comet timezone handling
URL: https://github.com/apache/datafusion-comet/issues/2733


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] [DISCUSS] Comet timezone handling [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #2733:
URL: https://github.com/apache/datafusion-comet/issues/2733#issuecomment-3517539914

   Another related timezone issue:
   
   Cast from string to timestamp:
   
   ```
         case DataTypes.TimestampType if timeZoneId.exists(tz => tz != "UTC") =>
           Incompatible(Some(s"Cast will use UTC instead of $timeZoneId"))
   ```


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] [DISCUSS] Comet timezone handling [datafusion-comet]

Posted by "parthchandra (via GitHub)" <gi...@apache.org>.
parthchandra commented on issue #2733:
URL: https://github.com/apache/datafusion-comet/issues/2733#issuecomment-3505160629

   > when the data source is not Parquet:
   
   when is this true? 


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] [DISCUSS] Comet timezone handling [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #2733:
URL: https://github.com/apache/datafusion-comet/issues/2733#issuecomment-3517537780

   > > when the data source is not Parquet:
   > 
   > when is this true?
   
   For Comet sinks, such as:
   
   - LocalTableScanExec
   - CometSparkToColumnarExec
   - Exchanges
   - UnionExec
   - CoalesceExec
   


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org