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

HdfsStorageDescriptor should handle escaped delimiter values

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 1.2.3
    • Impala 1.3
    • None
    • None

    Description

      Currently the delimiter string must be the literal ASCII character, e.g., 'รพ'. Hive supports writing the escaped numeric ASCII value, e.g., '\254' or '-2'. Impala will throw the following exception:

      com.cloudera.impala.catalog.HdfsStorageDescriptor$InvalidStorageDescriptorException: Invalid delimiter: field.delim has invalid length (-2). Already found: {line.delim=
      }
              at com.cloudera.impala.catalog.HdfsStorageDescriptor.extractDelimiters(HdfsStorageDescriptor.java:104)
              at com.cloudera.impala.catalog.HdfsStorageDescriptor.fromStorageDescriptor(HdfsStorageDescriptor.java:166)
              at com.cloudera.impala.catalog.HdfsTable.addDefaultPartition(HdfsTable.java:635)
              at com.cloudera.impala.catalog.HdfsTable.loadPartitions(HdfsTable.java:442)
              at com.cloudera.impala.catalog.HdfsTable.load(HdfsTable.java:752)
      

      To avoid this exception, use the literal character rather than the escaped value.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lskuff Lenni Kuff
            skye Skye Wanderman-Milne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment