You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2019/01/04 08:07:23 UTC

[GitHub] aravi5 opened a new pull request #1595: DRILL-6918: Skip ensureAtLeastOneField when there are no records

aravi5 opened a new pull request #1595: DRILL-6918: Skip ensureAtLeastOneField when there are no records
URL: https://github.com/apache/drill/pull/1595
 
 
   If none of the project / filter columns, exist in the records, `ensureAtLeastOneField` (or the Scan operator) adds at least one field as nullable integer (or nullable varchar if `allTextmode` is enabled).
   
   The downstream Filter operator would then go on to fail with `NumberFormatException` because it tries to convert empty fields to integers.
   
   Since `ensureAtLeastOneField` is called after reading all the messages in a batch, it can be skipped if the batch is empty.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services