Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5278

check ambiguous reference to fields in Spark SQL is incompleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • SQL
    • None

    Description

      at hive context

      for json string like

      {"a": {"b": 1, "B": 2}}

      The SQL `SELECT a.b from t` will report error for ambiguous reference to fields.
      But for json string like

      {"a": [{"b": 1, "B": 2}]}

      The SQL `SELECT a[0].b from t` will pass and pick the first `b`

      Attachments

        Issue Links

          Activity

            People

              cloud_fan Wenchen Fan
              cloud_fan Wenchen Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: