Commit 5ae3434 1 parent 69ba713 commit 5ae3434 Copy full SHA for 5ae3434
File tree 1 file changed +4
-9
lines changed
datafusion/core/tests/sql
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -727,15 +727,10 @@ async fn test_extract_date_part() -> Result<()> {
727
727
"9"
728
728
) ;
729
729
test_expression ! ( "date_part('WEEK', CAST('2003-01-01' AS DATE))" , "1" ) ;
730
-
731
- // TODO Creating logical plan for 'SELECT EXTRACT(WEEK FROM to_timestamp('2020-09-08T12:00:00+00:00'))'
732
- // SQL(ParserError("Expected date/time field, found: WEEK"))'
733
- // will fix in sqlparser
734
-
735
- // test_expression!(
736
- // "EXTRACT(WEEK FROM to_timestamp('2020-09-08T12:00:00+00:00'))",
737
- // "23"
738
- // );
730
+ test_expression ! (
731
+ "EXTRACT(WEEK FROM to_timestamp('2020-09-08T12:00:00+00:00'))" ,
732
+ "37"
733
+ ) ;
739
734
test_expression ! ( "date_part('DAY', CAST('2000-01-01' AS DATE))" , "1" ) ;
740
735
test_expression ! (
741
736
"EXTRACT(day FROM to_timestamp('2020-09-08T12:00:00+00:00'))" ,
You can’t perform that action at this time.
0 commit comments