Skip to content

[WIP]: 10513 - Null support in Case/When queries.#10514

Closed
abhioncbr wants to merge 16 commits intoapache:masterfrom
abhioncbr:10513-return-null
Closed

[WIP]: 10513 - Null support in Case/When queries.#10514
abhioncbr wants to merge 16 commits intoapache:masterfrom
abhioncbr:10513-return-null

Conversation

@abhioncbr
Copy link
Contributor

  • Null support in Case/When queries.

@codecov-commenter
Copy link

codecov-commenter commented Mar 31, 2023

Codecov Report

Merging #10514 (6535bec) into master (0026369) will decrease coverage by 50.43%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #10514       +/-   ##
=============================================
- Coverage     64.32%   13.89%   -50.43%     
+ Complexity     6444      439     -6005     
=============================================
  Files          2050     2052        +2     
  Lines        110311   110394       +83     
  Branches      16684    16704       +20     
=============================================
- Hits          70953    15336    -55617     
- Misses        34215    93799    +59584     
+ Partials       5143     1259     -3884     
Flag Coverage Δ
unittests1 ?
unittests2 13.89% <0.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
...che/pinot/query/planner/logical/RexExpression.java 0.00% <0.00%> (-93.85%) ⬇️

... and 1410 files with indirect coverage changes

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

} else if (rexNode instanceof RexLiteral) {
RexLiteral rexLiteral = ((RexLiteral) rexNode);
FieldSpec.DataType dataType = RelToStageConverter.convertToFieldSpecDataType(rexLiteral.getType());
//Added to set the DataType as UNKNOWN
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@61yao, After setting the UNKNOWN datatype, the value gets set as String null., which later fails for the Numeric data type.
I think you have made some changes in a couple of your PR. Do you think, once your PR will be merged this works fine?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is v2 engine code. @walterddr should have a better understanding of this. My code only deals with v1 path.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@walterddr do you think your PR is required here to merge before your change? Right now, it's failing because null is getting set as 'null' literal.

@abhioncbr abhioncbr closed this Aug 25, 2023
@abhioncbr abhioncbr deleted the 10513-return-null branch April 25, 2024 17:28
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.

3 participants