XMLWordPrintableJSON

Details

    Description

      >>> from pyspark.sql.types import StructType, StructField, StringType, IntegerType
      >>> schema = StructType([
      ...     StructField("name", StringType(), nullable=True),
      ...     StructField("age", IntegerType(), nullable=False)
      ... ])
      >>> df = spark.createDataFrame([("asd", None])], schema)
      pyspark.errors.exceptions.base.PySparkValueError: [CANNOT_BE_NONE] Argument `obj` cannot be None.

       

      Attachments

        Issue Links

          Activity

            People

              itholic Haejoon Lee
              itholic Haejoon Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: