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

    https://github.com/apache/tajo/pull/756#discussion_r39816146
  
    --- Diff: 
tajo-sql-parser/src/main/antlr4/org/apache/tajo/parser/sql/SQLParser.g4 ---
    @@ -106,9 +106,9 @@ if_exists
       ;
     
     create_table_statement
    -  : CREATE EXTERNAL TABLE (if_not_exists)? table_name table_elements 
(TABLESPACE spacename=identifier)? USING storage_type=identifier
    +  : CREATE EXTERNAL TABLE (if_not_exists)? table_name (table_elements)? 
(TABLESPACE spacename=identifier)? USING storage_type=identifier
    --- End diff --
    
    This grammar allows to create table without parenthesis ``(..)``. It looks 
good to me.
    
    I also have another suggestion. How do you think about a special notation 
with parenthesis like ``CREATE EXTERNAL TABLE (*) USING JSON``. I used asterisk 
``*`` as a meaning of becoming anything and the infinite number of fields, 
which can be zero to up to be infinite.


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