Skip to content
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

[feature]Support "SHOW CREATE TABLE" #97

Open
smm321 opened this issue May 11, 2022 · 0 comments
Open

[feature]Support "SHOW CREATE TABLE" #97

smm321 opened this issue May 11, 2022 · 0 comments

Comments

@smm321
Copy link

smm321 commented May 11, 2022

Hi @godfreyhe I have extended "ShowCreateTableOperation" operator
Here is a sample
Request:
{ "statement":"show create table my_table"}

Response:
{ "results": [ { "result_kind": "SUCCESS_WITH_CONTENT", "columns": [ { "name": "dql", "type": "VARCHAR(1)"} ], "data": [ [ "CREATE TABLE xxx(batch_timeTIMESTAMP(3),num BIGINT, PRIMARY KEY (batch_time) NOT ENFORCED) WITH('connector'='jdbc', 'password'='xxxx', 'table-name'='my_table', 'url'='jdbc:mysql://127.0.0.1:3306/mydb?characterEncoding=UTF-8&useUnicode=true&useSSL=false', 'username'='user')" ] ] } ], "statement_types": [ "SHOW_CREATE_TABLE" ] }

can I have a pull request? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant