Skip to content

Commit

Permalink
[branch-2.1](test) fix some tests in external p0
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Jun 11, 2024
1 parent fce09ae commit f7ed249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ suite("test_hive_write_insert", "p0,external,hive,external_docker,external_docke

logger.info("hive sql: " + """ truncate table all_types_${format_compression}; """)
hive_docker """ truncate table all_types_${format_compression}; """
sql """refresh catalog ${catalog_name};"""
order_qt_q06 """ select * from all_types_${format_compression};
"""
}
Expand Down Expand Up @@ -444,6 +445,7 @@ suite("test_hive_write_insert", "p0,external,hive,external_docker,external_docke

logger.info("hive sql: " + """ truncate table all_types_${format_compression}; """)
hive_docker """ truncate table all_types_${format_compression}; """
sql """refresh catalog ${catalog_name};"""
order_qt_q05 """
select * from all_types_${format_compression};
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ suite("test_external_catalog_hive", "p2,external,hive,external_remote,external_r
String extHiveHmsPort = context.config.otherConfigs.get("extHiveHmsPort")
String catalog_name = "test_external_catalog_hive"

sql """set enable_fallback_to_original_planner=false"""
sql """drop catalog if exists ${catalog_name};"""

sql """
Expand All @@ -47,7 +48,7 @@ suite("test_external_catalog_hive", "p2,external,hive,external_remote,external_r
sql """switch ${catalog_name};"""
// test small table(text format)
def q01 = {
qt_q01 """ select name, count(1) as c from student group by name order by c desc;"""
qt_q01 """ select name, count(1) as c from student group by name order by name desc;"""
qt_q02 """ select lo_orderkey, count(1) as c from lineorder group by lo_orderkey order by lo_orderkey asc;"""
qt_q03 """ select * from test1 order by col_1;"""
qt_q04 """ select * from string_table order by p_partkey desc;"""
Expand Down Expand Up @@ -148,7 +149,7 @@ suite("test_external_catalog_hive", "p2,external,hive,external_remote,external_r
'type'='hms',
'hive.metastore.uris' = 'thrift://${extHiveHmsHost}:${extHiveHmsPort}',
'access_controller.properties.ranger.service.name' = 'hive_wrong',
'access_controller.class' = 'org.apache.doris.catalog.authorizer.RangerHiveAccessControllerFactory'
'access_controller.class' = 'org.apache.doris.catalog.authorizer.ranger.hive.RangerHiveAccessControllerFactory'
);
"""
exception "Failed to init access controller: bound must be positive"
Expand Down

0 comments on commit f7ed249

Please sign in to comment.