Skip to content

Commit

Permalink
show table options when 'show create table.'
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Dec 4, 2023
1 parent 507b466 commit 5901f5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl ShowCreateTableInterpreter {
.get_hide_options_in_show_create_table()
.unwrap_or(false);

if !hide_options_in_show_create_table {
if !hide_options_in_show_create_table || engine == "ICEBERG" {
table_create_sql.push_str({
let mut opts = table_info.options().iter().collect::<Vec<_>>();
opts.sort_by_key(|(k, _)| *k);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
5 e
6 d
<<<<
>>>> show create table test_iceberg;
test_iceberg CREATE TABLE `test_iceberg` (
`id` INT NOT NULL,
`data` VARCHAR NOT NULL
) ENGINE=ICEBERG
<<<<
>>>> drop table test_iceberg;
>>>> drop connection if exists iceberg_conn;
>>>> create connection iceberg_conn storage_type = 's3' access_key_id ='minioadmin' secret_access_key ='minioadmin' ENDPOINT_URL='http://127.0.0.1:9900';
Expand All @@ -30,6 +24,6 @@ test_iceberg CREATE TABLE `test_iceberg` (
test_iceberg CREATE TABLE `test_iceberg` (
`id` INT NOT NULL,
`data` VARCHAR NOT NULL
) ENGINE=ICEBERG
) ENGINE=ICEBERG CONNECTION_NAME='iceberg_conn' LOCATION='s3://testbucket/iceberg_ctl/iceberg_db/iceberg_tbl/'
<<<<
>>>> drop table test_iceberg;
2 changes: 0 additions & 2 deletions tests/suites/1_stateful/10_iceberg/10_0002_iceberg_engine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ echo "create table test_iceberg engine = iceberg location = 'fs://${ROOT}/';" |

query "select * from test_iceberg order by id, data;"

query "show create table test_iceberg;"

stmt "drop table test_iceberg;"

stmt "drop connection if exists iceberg_conn;"
Expand Down

0 comments on commit 5901f5d

Please sign in to comment.