Skip to content

infromation_schema.columns not populated correctly #495

@guillesd

Description

@guillesd

When creating a table and then querying information_schema.columns, the column_name and the data_type fields are not populated for Iceberg tables.

-- Attach catalog (following setup of this repo)
CREATE SECRET (
      TYPE S3,
      KEY_ID 'admin',
      SECRET 'password',
      ENDPOINT '127.0.0.1:9000',
      URL_STYLE 'path',
      USE_SSL 0
  );
ATTACH '' AS my_datalake (
      TYPE ICEBERG,
      CLIENT_ID 'admin',
      CLIENT_SECRET 'password',
      ENDPOINT 'http://127.0.0.1:8181'
  );
CREATE SCHEMA my_datalake.default;
USE my_datalake.default;
CREATE TABLE t AS SELECT range a FROM range (4);
SELECT table_catalog, table_schema, table_name, column_name, data_type FROM information_schema.columns WHERE table_catalog='my_datalake' AND table_name='t';
┌───────────────┬──────────────┬────────────┬─────────────┬───────────┐
│ table_catalog │ table_schema │ table_name │ column_name │ data_type │
│    varcharvarcharvarcharvarcharvarchar  │
├───────────────┼──────────────┼────────────┼─────────────┼───────────┤
│ my_datalake   │ default      │ t          │ __          │ UNKNOWN   │
└───────────────┴──────────────┴────────────┴─────────────┴───────────┘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions