dongjoon-hyun commented on a change in pull request #23542: [WIP] [SPARK-25603][SQL] Pushing Down Nested Field projections URL: https://github.com/apache/spark/pull/23542#discussion_r248944103
########## File path: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetSchemaPruningSuite.scala ########## @@ -85,10 +90,95 @@ class ParquetSchemaPruningSuite briefContacts.map { case BriefContact(id, name, address) => BriefContactWithDataPartitionColumn(id, name, address, 2) } + testSchemaPruning("testing bug") { + val data = sql("select * from contacts") + import data.sqlContext.implicits._ + + val firstAndLastName = udf((first: String, last: String) => first + " " + last) + + data.show(10) + + val query = data.as[Contact] + .map(c => c.copy(id = 2)) + .select("id", "name", "address", "friends") + .select(col("id"), firstAndLastName(col("name.first"), col("name.last"))) + + query.explain(true) + query.show(true) + + val a =10 Review comment: Could you remove this line (which is failing the ScalaStyle test)? Then, we can see UT test result. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org