Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-398

column comments not supported in ADD COLUMNS and REPLACE COLUMNS statements

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.3.0, 0.4.0, 0.6.0
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      None

      Description

      The error message is also broken.

      hive> create table tmp_rs(a int);
      OK
      Time taken: 0.057 seconds
      hive> alter table tmp_rs add columns (b int); <----- succeeds
      OK
      Time taken: 0.126 seconds
      hive> alter table tmp_rs add columns (c int 'test'); <------ fails
      FAILED: Parse Error: line 2:19 mismatched input 'add' expecting SET in alter serdes statement

      Time taken: 0.0090 seconds
      hive> alter table tmp_rs replace columns (c int); <----- succeeds
      OK
      Time taken: 0.096 seconds
      hive> alter table tmp_rs replace columns (c int 'test'); <----- fails
      FAILED: Parse Error: line 2:19 mismatched input 'replace' expecting SET in alter serdes statement

      Time taken: 0.01 seconds
      hive>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            rsm Raghotham Murthy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development