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

Support reading Parquet files from Stream Buffer

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 3.0.0
    • None
    • PySpark
    • None

    Description

      Reading from a Python BufferIO a parquet is not possible using Pyspark.

      Using:

       

      from io import BytesIO
      
      parquetbytes : Bytes = b'PAR...'
      
      df = spark.read.format("parquet").load(BytesIO(parquetbytes))
      

      Raises :

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String

       

      Is there any chance this will be available in the future?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jetolgon Jelther Oliveira Gonçalves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: