@@ -3623,6 +3623,7 @@ def execute_spark_query(query: str, table_name):
36233623 FROM { creation_expression } AS t1
36243624 JOIN { creation_expression_2 } AS t2
36253625 ON t1.tag=t2.id
3626+ WHERE t1.tag < 10 AND t2.id < 20
36263627 ORDER BY ALL
36273628 SETTINGS
36283629 object_storage_cluster='cluster_simple',
@@ -3632,29 +3633,30 @@ def execute_spark_query(query: str, table_name):
36323633
36333634 assert res == "jack\t sparrow\n john\t dow\n "
36343635
3635- res = instance .query (
3636- f"""
3637- SELECT name
3638- FROM { creation_expression }
3639- WHERE tag in (
3640- SELECT id
3641- FROM { creation_expression_2 }
3642- )
3643- ORDER BY ALL
3644- SETTINGS
3645- object_storage_cluster='cluster_simple',
3646- object_storage_cluster_join_mode='local'
3647- """
3648- )
3636+ # res = instance.query(
3637+ # f"""
3638+ # SELECT name
3639+ # FROM {creation_expression}
3640+ # WHERE tag in (
3641+ # SELECT id
3642+ # FROM {creation_expression_2}
3643+ # )
3644+ # ORDER BY ALL
3645+ # SETTINGS
3646+ # object_storage_cluster='cluster_simple',
3647+ # object_storage_cluster_join_mode='local'
3648+ # """
3649+ # )
36493650
3650- assert res == "jack\n john\n "
3651+ # assert res == "jack\njohn\n"
36513652
36523653 res = instance .query (
36533654 f"""
36543655 SELECT t1.name,t2.second_name
36553656 FROM { creation_expression } AS t1
36563657 JOIN `{ TABLE_NAME_LOCAL } ` AS t2
36573658 ON t1.tag=t2.id
3659+ WHERE t1.tag < 10 AND t2.id < 20
36583660 ORDER BY ALL
36593661 SETTINGS
36603662 object_storage_cluster='cluster_simple',
@@ -3664,28 +3666,29 @@ def execute_spark_query(query: str, table_name):
36643666
36653667 assert res == "jack\t black\n john\t silver\n "
36663668
3667- res = instance .query (
3668- f"""
3669- SELECT name
3670- FROM { creation_expression }
3671- WHERE tag in (
3672- SELECT id
3673- FROM `{ TABLE_NAME_LOCAL } `
3674- )
3675- ORDER BY ALL
3676- SETTINGS
3677- object_storage_cluster='cluster_simple',
3678- object_storage_cluster_join_mode='local'
3679- """
3680- )
3669+ # res = instance.query(
3670+ # f"""
3671+ # SELECT name
3672+ # FROM {creation_expression}
3673+ # WHERE tag in (
3674+ # SELECT id
3675+ # FROM `{TABLE_NAME_LOCAL}`
3676+ # )
3677+ # ORDER BY ALL
3678+ # SETTINGS
3679+ # object_storage_cluster='cluster_simple',
3680+ # object_storage_cluster_join_mode='local'
3681+ # """
3682+ # )
36813683
3682- assert res == "jack\n john\n "
3684+ # assert res == "jack\njohn\n"
36833685
36843686 res = instance .query (
36853687 f"""
36863688 SELECT t1.name,t2.second_name
36873689 FROM { creation_expression } AS t1
36883690 CROSS JOIN `{ TABLE_NAME_LOCAL } ` AS t2
3691+ WHERE t1.tag < 10 AND t2.id < 20
36893692 ORDER BY ALL
36903693 SETTINGS
36913694 object_storage_cluster='cluster_simple',
0 commit comments