You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2023/01/06 17:55:35 UTC

[GitHub] [pinot] elonazoulay opened a new issue, #10073: Segment build fails with null value for time column

elonazoulay opened a new issue, #10073:
URL: https://github.com/apache/pinot/issues/10073

   Happy New Year!
   We noticed that creating a segment fails due to TimeUtils.VALID_MIN_TIME_MILLIS being 1971/01/01 instead of 1970/01/01, i.e. 0 epoch millis. Is this intended?
   
   Context:
   The TimeUtils.isValidInterval check fails. This is invoked by SegmentColumnarIndexCreator.writeMetadata (if skip check is enabled) and always invoked by PinotSegmentUploadDownloadRestletResource.uploadSegment.
   
   Is this intentional or should the min time be changed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] elonazoulay commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
elonazoulay commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1375383774

   @Jackie-Jiang update: inserting null values for both timestamp and timestamp arrays results in epoch millis 0, i.e. 1970-01-01 00:00:00.000 - so that can be used to bypass the min value check. Is that intended? 
   So behavior looks like it's:
   0 <= input_ts < epochMiillis(1971-01-01 00:00:00.000) -> error
   input_ts = null -> 1970-01-01 00:00:00.000
   input_ts > epochMiillis(1971-01-01 00:00:00.000) -> input_ts
   Is that correct?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1378036852

   No. Ideally we don't want any time value < 1971-01-01
   Are you using the latest version pinot library for the offline ingestion? There should be a check on the time column value range (in `SegmentColumnarIndexCreator.writeMetadata()`). Do you have time column configured in the offline table config?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang closed issue #10073: Segment build fails with null value for time column

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang closed issue #10073: Segment build fails with null value for time column
URL: https://github.com/apache/pinot/issues/10073


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] elonazoulay commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
elonazoulay commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1377745177

   It is not. Just did a test inserting null for the time column. Also tested realtime: it allows null value for the time column.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] elonazoulay commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
elonazoulay commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1374312345

   Ah ok, thanks! So how does someone insert values where the epoch milli is 0? It fails the validation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] elonazoulay commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
elonazoulay commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1374349611

   Thanks for responding @Jackie-Jiang !  I tried that and create segment is fine but upload segment still invokes the check regardless. lmk what you think: would it be worth it to add a flag to upload segment or keep the behavior about 1970? We have a use case where "0" is inserted into our datawarehouse data but have to filter it out in pinot.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1376468240

   Can you check if `null` is filled with 1970-01-01? It shouldn't be the case though. If default value is not provided, we will fill `null` with the current time, and that's why it might pass the value check.
   We put this restriction on the time column because it is used to determine whether a segment is expired, or can be pruned.
   Do you think you can put `null` in the source data, and put a very old default value (e.g. 1980)?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1374324677

   One workaround would be to turn the validation off (there is a flag in table config). But in regular case people should not ingest records with timestamp in 1970. The underlying logic is that there should be no data generated in 1970.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1374299266

   It is intentional to prevent users from putting the wrong time unit.
   E.g. if the time value is `daysSinceEpoch`, but user mistakenly put `MILLISECONDS` as the time unit, this validation will fail and can catch this error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] elonazoulay commented on issue #10073: Segment build fails with null value for time column

Posted by GitBox <gi...@apache.org>.
elonazoulay commented on issue #10073:
URL: https://github.com/apache/pinot/issues/10073#issuecomment-1378046631

   Thanks @Jackie-Jiang ! Yep, the `isValidTimeInterval` is where the validation fails (as expected).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org