Skip to content

Commit

Permalink
[bugfix](test)Set the enable_fallback_to_original_planner behavior (a…
Browse files Browse the repository at this point in the history
…pache#40913)

## Proposed changes

The default value of `enable_fallback_to_original_planner` in master is
`false`, but the default value in 2.1 is `true`.
So it needs to be unified to `false` for testing.
  • Loading branch information
wuwenchi authored Sep 18, 2024
1 parent 902cf1e commit ff05e11
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ suite("test_iceberg_create_table", "p0,external,doris,external_docker,external_d
return
}

String[][] ret = sql """ show variables like 'enable_fallback_to_original_planner' """
String origin_fallback = ret[0][1]

sql """ set enable_fallback_to_original_planner=false; """

String rest_port = context.config.otherConfigs.get("iceberg_rest_uri_port")
String minio_port = context.config.otherConfigs.get("iceberg_minio_port")
String externalEnvIp = context.config.otherConfigs.get("externalEnvIp")
Expand Down Expand Up @@ -73,4 +78,5 @@ suite("test_iceberg_create_table", "p0,external,doris,external_docker,external_d
sql """ drop table ${db1}.${tb2} """
sql """ drop database ${db1} """

sql """ set enable_fallback_to_original_planner=${origin_fallback}; """
}

0 comments on commit ff05e11

Please sign in to comment.