XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • Connect
    • None

    Description

      In Spark Connect:

      >>> df = spark.sql("values (1, struct('a' as x)), (null, null) as t(a, b)")
      >>> df.show()
      +----+----+
      |   a|   b|
      +----+----+
      |   1| {a}|
      |null|null|
      +----+----+
      
      >>> df.collect()
      [Row(a=1, b=Row(x='a')), Row(a=None, b=<Row()>)]
      

      whereas PySpark:

      >>> df.collect()
      [Row(a=1, b=Row(x='a')), Row(a=None, b=None)]
      

      Attachments

        Activity

          People

            ueshin Takuya Ueshin
            ueshin Takuya Ueshin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: