XMLWordPrintableJSON

Details

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

    Description

      PySpark raises an exception when:

      >>> spark.createDataFrame(pd.DataFrame({"a": [1]}), schema="int").collect()
      Traceback (most recent call last):
      ...
      TypeError: field value: IntegerType() can not accept object (1,) in type <class 'tuple'>
      

      whereas Spark Connect doesn't.

      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: