Github user daveoshinsky commented on the issue:
https://github.com/apache/drill/pull/517
I added a print to System.out for each time that the cast (including the
precision calculation I added) is called. I found that the cast is done once
for each input integer value from the SQL select statement. It is NOT done
once per row in the Parquet file(s) that Drill is scanning. So, there should
be absolutely no performance issue with doing the precision calculation as I am
doing it. Again, this is NOT done for every row. Please review.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---