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

    https://github.com/apache/drill/pull/729#discussion_r99392086
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/ops/FragmentContext.java ---
    @@ -245,6 +245,16 @@ public SchemaPlus getRootSchema() {
       }
     
       /**
    +   * Returns the statement type (e.g. SELECT, CTAS, ANALYZE) from the 
query context.
    +   * @return query statement type {@link QueryContext.StatementType}, if 
known.
    +   */
    +  public QueryContext.StatementType getStatementType() {
    +    if (queryContext != null) {
    --- End diff --
    
    Please explain under what conditions the query context will be null. Is 
this just being paranoid? Or, are there statement types where there is no 
context? And, if there are such statements, aren't those statements known, not 
"UNKNOWN"?


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