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

TypeInfoParser cannot handle column names with spaces in them

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 1.3.0, 2.0.0
    • Types
    • None
    • Hide
      HIVE-11476: TypeInfoParser cannot handle column names with spaces in them (Gopal V, reviewed by Hari Sankar Sivarama Subramaniyan)
      Show
      HIVE-11476 : TypeInfoParser cannot handle column names with spaces in them (Gopal V, reviewed by Hari Sankar Sivarama Subramaniyan)

    Description

      When using column names which contain escaped spaces in them like `user id`, the type info parser is unable to parse out the structures which have a format similar to

      struct<user id:int,user group: int>

      java.lang.IllegalArgumentException: Error: : expected at the position 12 of '' but 'struct<user id:int,user group: int>' is found.
              at org.apache.hadoop.hive.serde2.typeinfo.TypeInfoUtils$TypeInfoParser.expect(TypeInfoUtils.java:360)
      

      Attachments

        1. HIVE-11476.1.patch
          0.6 kB
          Gopal Vijayaraghavan

        Issue Links

          Activity

            People

              gopalv Gopal Vijayaraghavan
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: