-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] (nereids)implement showCreateCatalogCommand in nereids #43068
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
11dfb0d
to
f28e346
Compare
f28e346
to
a9fd178
Compare
/** | ||
* Represents the command for SHOW CREATE CATALOG. | ||
*/ | ||
public class ShowCreateCatalogCommand extends Command implements NoForward { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class ShowCreateCatalogCommand extends Command implements NoForward { | |
public class ShowCreateCatalogCommand extends ShowCommand { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done - pls review
"hosts"="http://127.0.0.1:9200" | ||
);""" | ||
|
||
result = sql """show create catalog ${catalog_name}""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkNereidsExecute("""show create catalog ${catalog_name}""")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done - please review
a9fd178
to
d194e86
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Issue Number: close #42740
implement showCreateCatalogCommand in nereids
Regression test result:
Changed Session Variables:
2024-11-19 15:27:31.633 INFO [suite-thread-1] (Suite.groovy:1316) - Execute tag: cmd, sql: show create catalog es
2024-11-19 15:27:31.641 INFO [suite-thread-1] (SuiteContext.groovy:392) - Delete /root/doris/doris/regression-test/data/nereids_p0/show/test_show_create_catalog.out
2024-11-19 15:27:31.642 INFO [suite-thread-1] (SuiteContext.groovy:394) - Generate /root/doris/doris/regression-test/data/nereids_p0/show/test_show_create_catalog.out
2024-11-19 15:27:31.665 INFO [suite-thread-1] (Suite.groovy:387) - Execute sql: drop catalog if exists es
2024-11-19 15:27:31.675 INFO [suite-thread-1] (ScriptContext.groovy:120) - Run test_show_create_catalog in /root/doris/doris/regression-test/suites/nereids_p0/show/test_show_create_catalog.groovy succeed
2024-11-19 15:27:52.891 INFO [main] (RegressionTest.groovy:281) - Start to run single scripts
2024-11-19 15:29:23.320 INFO [main] (RegressionTest.groovy:410) - Success suites:
/root/doris/doris/regression-test/suites/nereids_p0/show/test_show_create_catalog.groovy: group=p0,external,hive,external_docker,external_docker_hive, name=test_show_create_catalog
2024-11-19 15:29:23.321 INFO [main] (RegressionTest.groovy:492) - All suites success.