[ https://issues.apache.org/jira/browse/SPARK-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng Lian updated SPARK-1913: ------------------------------ Description: When scanning Parquet tables, attributes referenced only in predicates that are pushed down are not passed to the `ParquetTableScan` operator and causes exception. Verified in the {{sbt hive/console}}: {code} loadTestTable("src") table("src").saveAsParquetFile("src.parquet") parquetFile("src.parquet").registerAsTable("src_parquet") hql("SELECT value FROM src_parquet WHERE key < 10").collect().foreach(println) {code} was: When scanning Parquet tables, attributes referenced only in predicates that are pushed down are not passed to the `ParquetTableScan` operator and causes exception. Verified in the {{sbt hive/console}}: {code:java} loadTestTable("src") table("src").saveAsParquetFile("src.parquet") parquetFile("src.parquet").registerAsTable("src_parquet") hql("SELECT value FROM src_parquet WHERE key < 10").collect().foreach(println) {code} > Column pruning for Parquet table > -------------------------------- > > Key: SPARK-1913 > URL: https://issues.apache.org/jira/browse/SPARK-1913 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.0.0 > Environment: mac os 10.9.2 > Reporter: Chen Chao > > When scanning Parquet tables, attributes referenced only in predicates that > are pushed down are not passed to the `ParquetTableScan` operator and causes > exception. Verified in the {{sbt hive/console}}: > {code} > loadTestTable("src") > table("src").saveAsParquetFile("src.parquet") > parquetFile("src.parquet").registerAsTable("src_parquet") > hql("SELECT value FROM src_parquet WHERE key < 10").collect().foreach(println) > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)