Github user vesense commented on a diff in the pull request:

    https://github.com/apache/storm/pull/1681#discussion_r78530932
  
    --- Diff: 
external/sql/storm-sql-core/src/jvm/org/apache/storm/sql/StormSqlImpl.java ---
    @@ -140,6 +142,40 @@ public void submit(
         }
       }
     
    +  @Override
    +  public void explain(Iterable<String> statements) throws Exception {
    +    Map<String, ISqlTridentDataSource> dataSources = new HashMap<>();
    +    for (String sql : statements) {
    +      StormParser parser = new StormParser(sql);
    +      SqlNode node = parser.impl().parseSqlStmtEof();
    +
    +      
System.out.println("===========================================================");
    +      System.out.println("query>");
    +      System.out.println(sql);
    +      
System.out.println("-----------------------------------------------------------");
    +
    +      if (node instanceof SqlCreateTable) {
    +        handleCreateTableForTrident((SqlCreateTable) node, dataSources);
    +        System.out.println("No plan presented on DDL");
    +      } else if (node instanceof SqlCreateFunction) {
    +        handleCreateFunction((SqlCreateFunction) node);
    --- End diff --
    
    Do we need a tip here? `System.out.println("No plan presented on DDL");`


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to