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

Impala allows creation of text tables with same row and field delimiter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.2
    • Impala 2.3.0
    • None
    • None

    Description

      It is possible to create text tables with nonsensical formats such as identical row and column delimiters. This is less obvious when using the default for one delimiter and non-default for another. This should be straightforward to detect and report to the user.

      A straightforward repro is:

      create table if not exists broken_table (c1 string,c2 string) row format delimited lines terminated by '^A' stored as textfile;
      truncate broken_table;
      insert into broken_table values ("a", "b");
      select * from broken_table;
      

      Where ^A is ascii character 1.

      This results in:

      Query: select * from broken_table
      +----+------+
      | c1 | c2   |
      +----+------+
      | a  | NULL |
      | b  | NULL |
      +----+------+
      

      Attachments

        Activity

          People

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: