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

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

GitHub user DaveBirdsall opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/760

    [TRAFODION-2267] Fix ALTER TABLE RENAME documentation

    Problem: The SQL Reference manual describes a CASCADE keyword for ALTER 
TABLE RENAME, however if you try to use it, you get error message 1427, "Table 
cannot be renamed. Reason: Cascade option not supported."
    
    Supporting this option seems like a fair amount of work, so for the moment, 
we've simply removed mention of CASCADE from the SQL reference manual.
    
    While working on this issue, I noticed that the DDL messages section of the 
Messages Guide is woefully out-of-date. Among other things, it lacks several 
messages including the message 1427 mentioned above. Fixing all of that is a 
big job, but with this set of changes I did a small part of it. I added 
documentation for messages 1420-1429.
    
    While doing this I noticed that ALTER TABLE RENAME to an invalid HBase name 
produced a very ugly 8448 error (unlike CREATE TABLE and DROP TABLE which 
produce a nice tidy error 1422 in this case). I fixed the error reporting code 
in ALTER TABLE RENAME so that we now get the nice error 1422 instead.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/DaveBirdsall/incubator-trafodion Trafodion2267

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/760.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #760
    
----
commit 12ff1c4ef840c91374338ad8102f3d0c764364bb
Author: Dave Birdsall <dbirds...@apache.org>
Date:   2016-10-12T17:57:57Z

    [TRAFODION-2267] Fix ALTER TABLE RENAME documentation

----


> ALTER TABLE RENAME .. CASCADE option not supported
> --------------------------------------------------
>
>                 Key: TRAFODION-2267
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2267
>             Project: Apache Trafodion
>          Issue Type: Documentation
>          Components: documentation
>    Affects Versions: 2.0-incubating
>            Reporter: Atanu Mishra
>            Assignee: David Wayne Birdsall
>            Priority: Minor
>
> Alter table rename ... cascade' is listed in the SQL Reference Manual version 
> 2.0.0 on http://trafodion.incubator.apache.org/ [^] as a supported statement. 
> It has the following to say about the cascade option:
> cascade:
> specifies that indexes and constraints on the renamed object will be renamed.
> However, the cascade option is no longer supported. It now returns a 1427 
> error like the following:
> >>alter table t1 rename to t2 cascade;
> *** ERROR[1427] Table cannot be renamed. Reason: Cascade option not supported.
> --- SQL operation failed with errors.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to