Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-528

Support ALTER TABLE SET ROW FORMAT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Impala 1.1
    • None
    • Catalog

    Description

      I created a TEXTFILE table and loaded some data into it, not realizing I had left off the FIELDS TERMINATED BY clause to specify the delimiter. ALTER TABLE has a SET FILEFORMAT clause which can be used to say the data files are TEXTFILE if that part was specified wrong, but SET FILEFORMAT doesn't recognize the rest of the text-related clauses.

      I suggest making syntax like the following work the intuitive way:

      alter table raw_data_ymd set fileformat textfile fields terminated by '|';
      alter table raw_data_ymd set fields terminated by '|'; – If already a TEXTFILE with the wrong delimiter.

      Since ROW FORMAT DELIMITED is kind of a no-op currently, I don't suggest making that a required or optional part of these ALTER STATEMENT clauses.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jrussell John Russell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: