File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -3530,6 +3530,21 @@ def test_max_by_min_by(self):
35303530 with self .subTest (f"Checking count arg of { node .sql ('snowflake' )} " ):
35313531 self .assertIsNotNone (node .args .get ("count" ))
35323532
3533+ self .validate_all (
3534+ "SELECT MAX_BY(a, b) FROM t" ,
3535+ write = {
3536+ "snowflake" : "SELECT MAX_BY(a, b) FROM t" ,
3537+ "duckdb" : "SELECT ARG_MAX(a, b) FROM t" ,
3538+ },
3539+ )
3540+ self .validate_all (
3541+ "SELECT MIN_BY(a, b) FROM t" ,
3542+ write = {
3543+ "snowflake" : "SELECT MIN_BY(a, b) FROM t" ,
3544+ "duckdb" : "SELECT ARG_MIN(a, b) FROM t" ,
3545+ },
3546+ )
3547+
35333548 def test_create_view_copy_grants (self ):
35343549 # for normal views, 'COPY GRANTS' goes *after* the column list. ref: https://docs.snowflake.com/en/sql-reference/sql/create-view#syntax
35353550 self .validate_identity (
You can’t perform that action at this time.
0 commit comments