XMLWordPrintableJSON

Details

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

    Description

      df = self.spark.createDataFrame([(1, 2)], ["c", "c"])

      Error:

      Traceback (most recent call last):
        File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/tests/test_dataframe.py", line 65, in test_duplicated_column_names
          df = self.spark.createDataFrame([(1, 2)], ["c", "c"])
        File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/session.py", line 277, in createDataFrame
          raise ValueError(
      ValueError: Length mismatch: Expected axis has 1 elements, new values have 2 elements

      Attachments

        Activity

          People

            Unassigned Unassigned
            techaddict Sandeep Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: