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

Casting complex data types

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parser, Types
    • Labels:
      None

      Description

      The parser only supports casting primitive data types. Valid queries like these fail:

      SELECT CAST (NULL as array<int>);

      Error: Error while compiling statement: FAILED: ParseException line 1:21 cannot recognize input near 'array' '<' 'int' in primitive type specification (state=42000,code=40000)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              parassethia Paras Sethia
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: