Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5383#discussion_r28305660
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
 ---
    @@ -52,14 +56,32 @@ class HiveQuerySuite extends HiveComparisonTest with 
BeforeAndAfter {
         TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"))
         // Add Locale setting
         Locale.setDefault(Locale.US)
    +    sql(s"ADD JAR 
${TestHive.getHiveFile("data/files/TestUDTF.jar").getCanonicalPath()}")
    +    // The function source code can be found at:
    +    // https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide+UDTF
    +    sql(
    +      """
    +        |CREATE TEMPORARY FUNCTION udtf_count2 
    +        |AS 'org.apache.spark.sql.hive.execution.GenericUDTFCount2'
    +      """.stripMargin)
       }
     
       override def afterAll() {
         TestHive.cacheTables = false
         TimeZone.setDefault(originalTimeZone)
         Locale.setDefault(originalLocale)
    +    sql("DROP TEMPORARY FUNCTION udtf_count2")
       }
     
    +  createQueryTest("Test UDTF.close in Lateral Views",
    +     """
    +       | SELECT key, cc
    +       |   FROM src LATERAL VIEW udtf_count2(value) dd AS cc
    --- End diff --
    
    Please remove spaces at the beginning of these two lines.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to