Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: CDH4.2.1
    • Fix Version/s: CDH5.0.0
    • Component/s: Hive
    • Labels:
    • Environment:
      CDH 4.2.1, Hive-0.10.0-cdh4.2.1.

      Description

      Failure while accessing the data from Hive view with Map datatype.
      CREATE TABLE IF NOT EXISTS `test` (id INT, name STRING, attrs MAP<STRING,STRING>);
      drop view if exists testview;
      create view testview as
      select test.name,test.attrs["mKey"]
      from test;

      select * from testview;

      exception:

      hive> select * from testview;
      FAILED: SemanticException line 1:31 mismatched input '.' expecting FROM near '`test`' in from clause
      in definition of VIEW testview [
      select `test`.`name`,test`test`.`attrs`attrs["mKey"]
      from `hivetest`.`test`
      ] used as testview at Line 1:14

        Attachments

          Activity

            People

            • Assignee:
              shreepadma Shreepadma Venugopalan
              Reporter:
              sajeevp sajeev pr
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: