Github user brkyvz commented on the issue:

    https://github.com/apache/spark/pull/16030
  
    @maropu The reason I call it a bug with the VectorizedParquetReader is that 
all other data sources always replace the value read from the data with the 
partition value. The VectorizedReader also doesn't throw an exception if you 
try the following example:
    ```scala
    case class A(a: Long, b: Int)
    val as = Seq(A(1, 2))
    val path = "/tmp/part"
    
sqlContext.createDataFrame(as).write.mode("overwrite").parquet(s"$path/a=1480617712537/")
    val df = sqlContext.read.parquet(path)
    df.printSchema()
    df.collect()
    ```
    returns
    ```
    root
     |-- a: long (nullable = true)
     |-- b: integer (nullable = true)
    
    df: org.apache.spark.sql.DataFrame = [a: bigint, b: int]
    res7: Array[org.apache.spark.sql.Row] = Array([1480617712537,2])
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to