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

    https://github.com/apache/spark/pull/6874#discussion_r33113935
  
    --- Diff: sql/hive/src/test/resources/golden/constant object inspector for 
generic udf-0-cc120a2331158f570a073599985d3f55 ---
    @@ -1 +1 @@
    -{"aa":"10","aaaaaa":"11","aaaaaa":"12","bb12":"13","s14s14":"14"}
    +{"aa":"10","aaaaaa":"11","aaaaaa":"12","Bb12":"13","s14s14":"14"}
    --- End diff --
    
    The query is:
    ```scala
    createQueryTest("constant object inspector for generic udf",
        """SELECT named_struct(
          lower("AA"), "10",
          repeat(lower("AA"), 3), "11",
          lower(repeat("AA", 3)), "12",
          printf("Bb%d", 12), "13",
          repeat(printf("s%d", 14), 2), "14") FROM src LIMIT 1""")
    ```
    Since `printf` in Hive didn't change word case in `Bb%d`, therefore, `Bb12` 
is the right answer


---
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