-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix transformation to string for BOOLEAN and TIMESTAMP #9287
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
Conversation
eaef795 to
e2b48b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing break;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really need break for default branch. Changed it to if-else branches for clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, we do have linter check for that lol
...e/src/main/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunction.java
Outdated
Show resolved
Hide resolved
e2b48b2 to
0583e84
Compare
Codecov Report
@@ Coverage Diff @@
## master #9287 +/- ##
=============================================
- Coverage 68.60% 24.82% -43.79%
+ Complexity 5007 53 -4954
=============================================
Files 1867 1855 -12
Lines 99631 99217 -414
Branches 15150 15126 -24
=============================================
- Hits 68351 24627 -43724
- Misses 26362 72105 +45743
+ Partials 4918 2485 -2433
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
221852a to
e5d6462
Compare
e5d6462 to
b6270d8
Compare
For
BOOLEANandTIMESTAMP(logical types), when reading them as string, we should use the logical type to returntrue,2022-02-02 00:00:00.000instead of the int/long value.With the fix in
BaseTransformFunction, theCASTtransform function can be greatly simplified.