Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2734 +/- ##
============================================
+ Coverage 56.12% 57.23% +1.10%
- Complexity 976 1371 +395
============================================
Files 119 147 +28
Lines 11743 13843 +2100
Branches 2251 2376 +125
============================================
+ Hits 6591 7923 +1332
- Misses 4012 4692 +680
- Partials 1140 1228 +88 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@parthchandra @mbutrovich I'm not looking for a review yet, but I'd like to discuss this with you both next week. I understand the issue much better now. |
|
From what I recall, there was a choice to always use UTC in the native code. All expression implementations (before we switched to using Datafusion entirely) would then convert to UTC before any processing. Not sure if this is still true. |
If we want to keep with this approach then we probably need to add casts to UTC for all comet sinks (such as CometSparkToColumnarExec). |
Which issue does this PR close?
Partial fix for #2649
Rationale for this change
In native code, we had a hard-coded
UTCwhen converting Spark schema to Arrow schema.In
to_arrow_datatype:This would lead to a runtime error when running a query against a DataFrame (not a Parquet file) that is not in
UTC:What changes are included in this PR?
Pass Spark timeZoneId into native code and use that instead of hard-coded
UTC.How are these changes tested?
WIP