Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test]more geospatial v2 integration tests #11741

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

xiangfu0
Copy link
Contributor

@xiangfu0 xiangfu0 commented Oct 4, 2023

intermediate stage with literal

@xiangfu0 xiangfu0 changed the title more geospatial v2 integration tests [test]more geospatial v2 integration tests Oct 4, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2023

Codecov Report

Merging #11741 (05f0fa9) into master (d1021df) will increase coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #11741      +/-   ##
============================================
+ Coverage     63.09%   63.13%   +0.04%     
  Complexity     1117     1117              
============================================
  Files          2342     2342              
  Lines        125900   125900              
  Branches      19362    19362              
============================================
+ Hits          79437    79490      +53     
+ Misses        40817    40759      -58     
- Partials       5646     5651       +5     
Flag Coverage Δ
integration <0.01% <ø> (ø)
integration1 <0.01% <ø> (ø)
integration2 0.00% <ø> (ø)
java-11 63.07% <ø> (+12.94%) ⬆️
java-17 62.97% <ø> (+0.01%) ⬆️
java-20 62.97% <ø> (+0.03%) ⬆️
temurin 63.13% <ø> (+0.04%) ⬆️
unittests 63.13% <ø> (+0.04%) ⬆️
unittests1 67.28% <ø> (+0.02%) ⬆️
unittests2 14.43% <ø> (+0.02%) ⬆️

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

see 15 files with indirect coverage changes

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

@@ -309,7 +309,9 @@ public void testStPointFunctionWithV2(boolean useMultiStageQueryEngine)
+ "b.st_point, "
+ "b.st_point_1, "
+ "ST_DISTANCE(ST_Point(a.st_x, a.st_y, -1), b.st_point), "
Copy link
Contributor

Choose a reason for hiding this comment

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

Not introduced in this PR, but this should be 0 instead of -1. -1 is not a valid representation of boolean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was checking the Boolean utils, any value other than 1 is treated as false, hence the test.

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang Oct 9, 2023

Choose a reason for hiding this comment

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

That is due to the current implementation. In SQL standard, any number other than 0 is treated as true. #11763 fixes this behavior

@xiangfu0 xiangfu0 merged commit 24af80d into apache:master Oct 9, 2023
19 checks passed
@xiangfu0 xiangfu0 deleted the more-geo-test branch October 9, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants