Support different shapes of TIMESTAMP function#21751
Conversation
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 25b2c3e.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit 25b2c3e)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 25b2c3e Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit b132c96
Suggestions up to commit 415608e
Suggestions up to commit 84ab7b8
|
|
❌ Gradle check result for 84ab7b8: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
84ab7b8 to
415608e
Compare
|
Persistent review updated to latest commit 415608e |
|
❌ Gradle check result for 415608e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
415608e to
b132c96
Compare
|
Persistent review updated to latest commit b132c96 |
|
❌ Gradle check result for b132c96: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
b132c96 to
25b2c3e
Compare
|
Persistent review updated to latest commit 25b2c3e |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21751 +/- ##
==========================================
Coverage 73.48% 73.48%
- Complexity 75078 75129 +51
==========================================
Files 6012 6016 +4
Lines 340940 341072 +132
Branches 49076 49091 +15
==========================================
+ Hits 250543 250645 +102
- Misses 70409 70476 +67
+ Partials 19988 19951 -37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Enhances the
DatetimeAdapteron theanalytics-backend-datafusionroute to handle the full set of call shapes that PPL'sTIMESTAMP(...)function supports, so legacy PPL parity holds without invoking DataFusion'sto_timestamp(to_date(...))chain.The adapter recognizes seven call shapes and routes each to the right backend path:
TIMESTAMP('2020-01-01 00:00:00')TIMESTAMP(DATE('2020-08-26'))date.atStartOfDay(UTC)TIMESTAMP(TIME('10:20:30'))TIMESTAMP(TIMESTAMP('lit'))to_timestamp(identity at runtime)TIMESTAMP('2020-01-01 10:00:00', '01:30:00')TIMESTAMP(<column>)DateTimeAdapters.DatetimeAdapter(to_timestampbuiltin)TIMESTAMP('<bad string>')IllegalArgumentExceptioncarrying the raw input → HTTP 400