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

[Bug] Desc command does not display the table structure correctly #44426

Open
2 of 3 tasks
wyxxxcat opened this issue Nov 21, 2024 · 0 comments
Open
2 of 3 tasks

[Bug] Desc command does not display the table structure correctly #44426

wyxxxcat opened this issue Nov 21, 2024 · 0 comments

Comments

@wyxxxcat
Copy link
Contributor

wyxxxcat commented Nov 21, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What's Wrong?

111
309ac210f13feead40618647ceffb628.png

What You Expected?

correct result

How to Reproduce?

CREATE TABLE if NOT EXISTS t
(
    `test` INT,
    `v` variant
)
ENGINE=OLAP
DUPLICATE KEY(`test`)
DISTRIBUTED BY HASH(test) BUCKETS 1
PROPERTIES (
    "replication_allocation" = "tag.location.default: 1",
    "binlog.enable" = "true",
    "variant_enable_flatten_nested" = "true"
);
curl -X POST -H "Content-Type: application/json" -d '{
    "name": "test",
    "src": {
    "host": "",
    "port": "",
    "thrift_port": "",
    "user": "root",
    "password": "",
    "database": "db_src",
    "table": ""
    },
    "dest": {
    "host": "",
    "port": "",
    "thrift_port": "",
    "user": "root",
    "password": "",
    "database": "db_dest",
    "table": ""
    }
}' http://127.0.0.1:9190/create_ccr
insert into t values(1, '{
  "eventId": 1,
  "firstName": "Name1",
  "lastName": "Eric",
  "body": {
    "phoneNumbers": [
      {
        "number": "1111111111",
        "type": "GSM",
        "callLimit": 5
      },
      {
        "number": "222222222",
        "type": "HOME",
        "callLimit": 3
      },
      {
        "number": "33333333",
        "callLimit": 2,
        "type": "WORK"
      }
    ]
  }
}');
use db_src;
select * from db_src;
set describe_extend_variant_column = true; 
desc t;
use db_dest;
select * from db_dest;
set describe_extend_variant_column = true; 
desc t;

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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