LakeQL
Overview
  • Installation
Commands
  • init
  • pull
  • create-registry
  • list-schemas
  • list-tables
  • list-views
  • list-columns
  • create-endpoint
  • generate-import-config
Configuration
  • Environment Variables
  • Config File
GitHub
LakeQL
  1. CLI
  2. Commands
  3. list-columns

On this page

  1. Syntax
  2. Usage
  3. Options

list-columns

Lists columns for the specified table including types and descriptions.

Queries Trino and prints all columns for a specific table, including their data types, extra metadata, and descriptions.

Syntax #

1
2
lakeql-cli list-columns [options]

Usage #

1
2
lakeql-cli list-columns --catalog hive --schema analytics --table users
1
2
3
4
5
6
7
8
9
┌─────────────┬──────────┬───────┬─────────────────────┐
│ Column Name │ Type     │ Extra │ Description         │
├─────────────┼──────────┼───────┼─────────────────────┤
│ id          │ varchar  │       │ Unique identifier   │
│ email       │ varchar  │       │ User email address  │
│ created_at  │ timestamp│       │ Account creation ts │
│ is_active   │ boolean  │       │ Whether user active │
└─────────────┴──────────┴───────┴─────────────────────┘

Options #

--catalog <catalog>

catalog to use

PropertyValue
Typestring
RequiredNo
Env varHIVE_CATALOG

--schema <schema>

schema to use

PropertyValue
Typestring
RequiredYes

--table <table>

table to use

PropertyValue
Typestring
RequiredYes

Previous page

list-views

Next page

create-endpoint