Github user jaltekruse commented on the pull request:

    https://github.com/apache/drill/pull/293#issuecomment-162704924
  
    Apologies, didn't think about the order in which compilation and resolving 
the injectables would be executed. I thought I had verified that this error 
would make it back to users if the function was used in a select list, but 
obviously there wasn't a test for it.
    
    As far as looking at the output of explorers, the easiest way to do this 
would be to use a function like maxdir in the where clause and then just 
include dirN in the select clause as well. This will cause the function to be 
evaluated just during pruning.
    
    select dir0 from dfs.workspace`path/to/dir/*` where dir0 = 
MAXDIR('dfs.workspace', '/path/to/dir');


---
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.
---

Reply via email to