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

    https://github.com/apache/spark/pull/19559#discussion_r147330270
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/datetime.sql ---
    @@ -8,3 +8,18 @@ select to_date(null), to_date('2016-12-31'), 
to_date('2016-12-31', 'yyyy-MM-dd')
     select to_timestamp(null), to_timestamp('2016-12-31 00:12:00'), 
to_timestamp('2016-12-31', 'yyyy-MM-dd');
     
     select dayofweek('2007-02-03'), dayofweek('2009-07-30'), 
dayofweek('2017-05-27'), dayofweek(null), dayofweek('1582-10-15 13:10:15');
    +
    +-- [SPARK-22333]: timeFunctionCall has conflicts with columnReference
    +create temporary view ttf1 as select * from values
    +  (1, 2),
    +  (2, 3),
    +  as ttf1(current_date, current_timestamp);
    +  
    +select current_date, current_timestamp from ttf1
    +
    +create temporary view ttf2 as select * from values
    +  (1, 2),
    +  (2, 3),
    +  as ttf2(a, b);
    +  
    +select current_date = current_date(), current_timestamp = 
current_timestamp(), a, b from ttf2
    --- End diff --
    
    Add an empty line 


---

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

Reply via email to