-
- Downloads
[SPARK-6734] [SQL] Add UDTF.close support in Generate
Some third-party UDTF extensions generate additional rows in the "GenericUDTF.close()" method, which is supported / documented by Hive. https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide+UDTF However, Spark SQL ignores the "GenericUDTF.close()", and it causes bug while porting job from Hive to Spark SQL. Author: Cheng Hao <hao.cheng@intel.com> Closes #5383 from chenghao-intel/udtf_close and squashes the following commits: 98b4e4b [Cheng Hao] Support UDTF.close
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala 6 additions, 0 deletions...rg/apache/spark/sql/catalyst/expressions/generators.scala
- sql/core/src/main/scala/org/apache/spark/sql/execution/Generate.scala 28 additions, 10 deletions.../main/scala/org/apache/spark/sql/execution/Generate.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala 15 additions, 3 deletions...e/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala
- sql/hive/src/test/resources/TestUDTF.jar 0 additions, 0 deletionssql/hive/src/test/resources/TestUDTF.jar
- sql/hive/src/test/resources/golden/Test UDTF.close in Lateral Views-0-ac5c96224a534f07b49462ad76620678 2 additions, 0 deletions...close in Lateral Views-0-ac5c96224a534f07b49462ad76620678
- sql/hive/src/test/resources/golden/Test UDTF.close in SELECT-0-517f834fef35b896ec64399f42b2a151 2 additions, 0 deletions...t UDTF.close in SELECT-0-517f834fef35b896ec64399f42b2a151
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala 21 additions, 0 deletions.../org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
sql/hive/src/test/resources/TestUDTF.jar
0 → 100644
File added
Please register or sign in to comment