Skip to content

Conversation

@saurabhd336
Copy link
Contributor

SELECT quarter(date2) FROM "Calcs"

fails on V2 with

Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.pinot.core.operator.transform.function.ExtractTransformFunction.Field.QUARTER\

because calcite rewriter implicitly converts it to a extract query

@saurabhd336 saurabhd336 changed the title Add extract(quarter) support Add extract(quarter/dow/doy) support Aug 19, 2023
Copy link
Contributor

@xiangfu0 xiangfu0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2023

Codecov Report

Merging #11388 (23fb7f3) into master (a5a1641) will increase coverage by 0.01%.
Report is 3 commits behind head on master.
The diff coverage is 10.00%.

@@             Coverage Diff              @@
##             master   #11388      +/-   ##
============================================
+ Coverage     61.42%   61.44%   +0.01%     
- Complexity     6512     6514       +2     
============================================
  Files          2234     2234              
  Lines        120158   120173      +15     
  Branches      18239    18240       +1     
============================================
+ Hits          73811    73835      +24     
+ Misses        40918    40909       -9     
  Partials       5429     5429              
Flag Coverage Δ
integration1 0.00% <0.00%> (ø)
integration2 0.00% <0.00%> (ø)
java-11 61.40% <10.00%> (+<0.01%) ⬆️
java-17 61.28% <10.00%> (+<0.01%) ⬆️
java-20 61.29% <10.00%> (+<0.01%) ⬆️
temurin 61.44% <10.00%> (+0.01%) ⬆️
unittests1 66.94% <10.00%> (-0.01%) ⬇️
unittests2 14.58% <0.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...r/transform/function/ExtractTransformFunction.java 68.75% <10.00%> (-15.87%) ⬇️

... and 9 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Jackie-Jiang Jackie-Jiang added feature multi-stage Related to the multi-stage query engine labels Aug 19, 2023
@Jackie-Jiang Jackie-Jiang merged commit 1783f2a into apache:master Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature multi-stage Related to the multi-stage query engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants