Github user paul-rogers commented on a diff in the pull request:

    https://github.com/apache/drill/pull/729#discussion_r99393478
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/ops/QueryContext.java ---
    @@ -77,6 +78,7 @@
       private final SchemaTreeProvider schemaTreeProvider;
       /** Stores constants and their holders by type */
       private final Map<String, Map<MinorType, ValueHolder>> 
constantValueHolderCache;
    +  private StatementType stmtType = StatementType.UNKNOWN;
    --- End diff --
    
    Maybe initialize to null (the default) and require that the statement type 
be set later. Or, pass the statement type into the constructor and make the 
type a `final` variable showing that the statement type cannot change over time.


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