[ 
https://issues.apache.org/jira/browse/TRAFODION-2804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16288616#comment-16288616
 ] 

ASF GitHub Bot commented on TRAFODION-2804:
-------------------------------------------

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

    
https://github.com/apache/incubator-trafodion/pull/1334#discussion_r156550596
  
    --- Diff: core/sql/regress/compGeneral/TEST045 ---
    @@ -498,8 +512,36 @@ update statistics for table date_dim on every column;
     update statistics for table date_dim on (d_qoy, d_year);
     update statistics for table store_sales on every column;
     
    +
    +
    +--------------------------------------------------------------------
    +?section common_subexpr
    --- End diff --
    
    Note the change is already merged, maybe you or I can do this in a future 
checkin when it's convenient.


> add "LIMIT" clause support for statements create-as-select and 
> load-into-select
> -------------------------------------------------------------------------------
>
>                 Key: TRAFODION-2804
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2804
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-cmp
>            Reporter: Qilin Chen
>            Priority: Minor
>
> We don't support "LIMIT" clause in statements CREATE-AS-SELECT and 
> LOAD-INTO-SELECT, see below for details:
> --01 : CREATE-AS-SELECT
> SQL>create table comment_table_02 as select * from comment_table limit 100;
> *** ERROR[15001] A syntax error occurred at or before:
> create table comment_table_02 as select * from comment_table limit 100;
>                                                                  ^ (66 
> characters from start of SQL statement) [2017-11-13 15:42:01]
> --02 : LOAD-INTO-SELECT
> SQL>load into comment_table_02 select * from comment_table limit 100;
> *** ERROR[15001] A syntax error occurred at or before:
> load into comment_table_02 select * from comment_table limit 100;
>                                                            ^ (60 characters 
> from start of SQL statement) [2017-11-13 15:45:31]
> --03 : INSERT-INTO-SELECT
> SQL>insert into test003 select * from test002 limit 4;
> *** ERROR[15001] A syntax error occurred at or before:
> insert into test003 select * from test002 limit 4;
>                                               ^ (47 characters from start of 
> SQL statement) [2017-12-11 10:27:03]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to