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

column comments not supported in ADD COLUMNS and REPLACE COLUMNS statements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.3.0, 0.4.0, 0.6.0
    • None
    • Query Processor
    • 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>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: