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

    https://github.com/apache/spark/pull/18761#discussion_r130216023
  
    --- Diff: 
sql/core/src/test/resources/sql-tests/inputs/sql-compatibility-functions.sql ---
    @@ -23,3 +23,9 @@ SELECT float(1), double(1), decimal(1);
     SELECT date("2014-04-04"), timestamp(date("2014-04-04"));
     -- error handling: only one argument
     SELECT string(1, 2);
    +
    +-- SPARK-21555: RuntimeReplaceable used in group by
    +CREATE TABLE test(a INT, foo STRUCT<foo1:STRING,foo2:STRING>) USING 
parquet;
    +INSERT INTO test VALUES(1, ("value1", "value2"));
    +SELECT nvl(foo.foo1, "value"), count(*) FROM test GROUP BY nvl(foo.foo1, 
"value");
    +DROP TABLE test;
    --- End diff --
    
    You can simplify the test case to something like
    ```SQL
    CREATE TEMPORARY VIEW tempView1 AS VALUES (1, NAMED_STRUCT('col1', 'gamma', 
'col2', 'delta')) AS T(id, st)")
    SELECT nvl(st.col1, "value"), count(*) FROM from tempView1 GROUP BY 
nvl(st.col1, "value")
    
    ```


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