-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix time validation when data type needs to be converted #9569
Conversation
_timeFormatSpec = dateTimeFieldSpec.getFormatSpec(); | ||
IngestionConfig ingestionConfig = tableConfig.getIngestionConfig(); | ||
if (ingestionConfig != null) { | ||
_skipTimeValueCheck = !ingestionConfig.isRowTimeValueCheck(); |
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.
Why not use the original flag here instead of doing !isRowTimeValueCheck
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.
I'm debating a little bit on having the default value as true
, but checked with @xiangfu0 and I believe the default behavior of having row value check on is by mistake (different from the existing behavior), so I'll change it to use the original flag
dc13fd4
to
7fff03f
Compare
7fff03f
to
3799b24
Compare
Codecov Report
@@ Coverage Diff @@
## master #9569 +/- ##
============================================
- Coverage 69.90% 63.83% -6.08%
- Complexity 4875 4895 +20
============================================
Files 1931 1881 -50
Lines 103117 100949 -2168
Branches 15654 15420 -234
============================================
- Hits 72088 64438 -7650
- Misses 25954 31785 +5831
+ Partials 5075 4726 -349
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 |
Move the time validation into a separate record transformer:
TimeValidationTransformer
with the following bugfixes/enhancements:IngestionConfig
, and the same as the old behavior before default enabled row based time validation was introduced in Refactor timeValueCheck for Pinot TableConfig #9349)isNoOp()
API toRecordTransformer
so that no-op transformers can be skipped