Yulei-Yang commented on code in PR #37828: URL: https://github.com/apache/doris/pull/37828#discussion_r1683750986
########## regression-test/suites/external_table_p0/hive/test_external_catalog_hive.groovy: ########## @@ -145,10 +145,24 @@ suite("test_external_catalog_hive", "p0,external,hive,external_docker,external_d sql """alter catalog ${catalog_name} rename hms;""" sql """switch hms;""" - - def res3 = sql """select count(*) from test.hive_test limit 10;""" + sql """use test;""" + def res3 = sql """select count(*) from hive_test limit 10;""" logger.info("recoding select: " + res3.toString()) + def user = 'account_user_test' + def pwd = 'C123_567p' + try_sql("DROP USER ${user}") + sql """CREATE USER '${user}' IDENTIFIED BY '${pwd}'""" + sql """GRANT SELECT_PRIV on *.*.* to '${user}'""" + def result1 = connect(user=user, password="${pwd}", url=context.config.jdbcUrl) { + sql """switch hms;""" + try { + sql """show tables;""" Review Comment: tks, done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org