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

JVM locale affects SQL type names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.1.0
    • None
    • PySpark, SQL
    • None

    Description

      Steps to reproduce:

      from pyspark.sql.types import IntegerType
      
      locale = sc._jvm.java.util.Locale
      locale.setDefault(locale.forLanguageTag("tr-TR"))
      
      spark.createDataFrame([1, 2, 3], IntegerType())
      
      Py4JJavaError: An error occurred while calling o24.applySchemaToPythonRDD.
      : java.util.NoSuchElementException: key not found: integer
      	at scala.collection.MapLike$class.default(MapLike.scala:228)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zero323 Maciej Szymkiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: