Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Dec 18, 2025

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

  • Add support for unix_timestamp for timestamp and date inputs
  • Move all temoral expression serde into expression registry

How are these changes tested?

Benchmarks

Performance is not great:

OpenJDK 64-Bit Server VM 11.0.22+7-LTS on Mac OS X 14.6.1
Apple M3 Max
Unix Timestamp from Timestamp (UTC):          Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
----------------------------------------------------------------------------------------------------------------------------
Unix Timestamp from Timestamp (UTC) - Spark              31             46          11         34.3          29.1       1.0X
Unix Timestamp from Timestamp (UTC) - Comet              37             55          13         28.7          34.9       0.8X

OpenJDK 64-Bit Server VM 11.0.22+7-LTS on Mac OS X 14.6.1
Apple M3 Max
Unix Timestamp from Date (UTC):           Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
Unix Timestamp from Date (UTC) - Spark               43             58          14         24.6          40.6       1.0X
Unix Timestamp from Date (UTC) - Comet               31             47          17         34.2          29.2       1.4X

OpenJDK 64-Bit Server VM 11.0.22+7-LTS on Mac OS X 14.6.1
Apple M3 Max
Unix Timestamp from Timestamp (America/Los_Angeles):          Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
--------------------------------------------------------------------------------------------------------------------------------------------
Unix Timestamp from Timestamp (America/Los_Angeles) - Spark              27             51          18         39.4          25.4       1.0X
Unix Timestamp from Timestamp (America/Los_Angeles) - Comet              33             54          13         31.6          31.6       0.8X

OpenJDK 64-Bit Server VM 11.0.22+7-LTS on Mac OS X 14.6.1
Apple M3 Max
Unix Timestamp from Date (America/Los_Angeles):          Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------
Unix Timestamp from Date (America/Los_Angeles) - Spark              58             84          19         18.0          55.6       1.0X
Unix Timestamp from Date (America/Los_Angeles) - Comet              61             79          15         17.3          57.7       1.0X

@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2025

Codecov Report

❌ Patch coverage is 76.92308% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.61%. Comparing base (f09f8af) to head (d7ffc2e).
⚠️ Report is 783 commits behind head on main.

Files with missing lines Patch % Lines
...c/main/scala/org/apache/comet/serde/datetime.scala 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2936      +/-   ##
============================================
+ Coverage     56.12%   59.61%   +3.48%     
- Complexity      976     1381     +405     
============================================
  Files           119      167      +48     
  Lines         11743    15506    +3763     
  Branches       2251     2569     +318     
============================================
+ Hits           6591     9244    +2653     
- Misses         4012     4961     +949     
- Partials       1140     1301     +161     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andygrove andygrove marked this pull request as ready for review December 20, 2025 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants