Hive
  1. Hive
  2. HIVE-2916

Hive Type Information for Table Columns

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0, 0.8.1
    • Component/s: None
    • Labels:
    • Environment:

      Hive-0.8.1

      Description

      Hi
      I am using Hive-0.8.1. I am trying to get type information for table columns from MetaStore. The Developer documentation says the components of ql/typeinfo is responsible for this.
      i.e, under the query processor section in https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide#DeveloperGuide-QueryProcessor

      However the directory "typeinfo" is missing in hadoop/hive/ql.I understand from typeinfo has java files that is responsible for getting all struct fieldnames, categories, primitive types. etc.
      Indrani

        Activity

        Hide
        Indrani Gorti added a comment -

        Hi
        I just realized that there is a package
        "org.apache.hadoop.hive.serde2.typeinfo" that is imported when file q/typeinfo has to be used.
        The package has the following which is what /q/typeinfo directory contains

        • ListTypeInfo.java
        • MapTypeInfo.java
        • PrimitiveTypeInfo.java
        • StructTypeInfo.java
        • TypeInfo.java
        • TypeInfoFactory.java
        • TypeInfoUtils.java

        one can see this in
        http://hive.apache.org/docs/r0.7.1/api/org/apache/hadoop/hive/serde2/typeinfo/package-tree.html
        and
        https://svn.apache.org/repos/asf/hive/branches/branch-0.2/ql/src/java/org/apache/hadoop/hive/ql/typeinfo/

        Indrani Gorti

        Show
        Indrani Gorti added a comment - Hi I just realized that there is a package "org.apache.hadoop.hive.serde2.typeinfo" that is imported when file q/typeinfo has to be used. The package has the following which is what /q/typeinfo directory contains ListTypeInfo.java MapTypeInfo.java PrimitiveTypeInfo.java StructTypeInfo.java TypeInfo.java TypeInfoFactory.java TypeInfoUtils.java one can see this in http://hive.apache.org/docs/r0.7.1/api/org/apache/hadoop/hive/serde2/typeinfo/package-tree.html and https://svn.apache.org/repos/asf/hive/branches/branch-0.2/ql/src/java/org/apache/hadoop/hive/ql/typeinfo/ Indrani Gorti

          People

          • Assignee:
            Unassigned
            Reporter:
            Indrani Gorti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development