Merge pull request #6040 from yandex/fix-desc-table

Do not show virtual columns in DESCRIBE TABLE
This commit is contained in:
alexey-milovidov 2019-07-17 20:17:35 +03:00 committed by GitHub
commit cbca99ca01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,9 @@ BlockInputStreamPtr InterpreterDescribeQuery::executeImpl()
for (const auto & column : columns) for (const auto & column : columns)
{ {
if (column.is_virtual)
continue;
res_columns[0]->insert(column.name); res_columns[0]->insert(column.name);
res_columns[1]->insert(column.type->getName()); res_columns[1]->insert(column.type->getName());