Skip to content

fix(object): display describe command output vertically for better readability#2783

Open
machov wants to merge 1 commit intosnowflakedb:mainfrom
machov:fix/snowflake-cli-1849-describe-vertical-output
Open

fix(object): display describe command output vertically for better readability#2783
machov wants to merge 1 commit intosnowflakedb:mainfrom
machov:fix/snowflake-cli-1849-describe-vertical-output

Conversation

@machov
Copy link

@machov machov commented Feb 25, 2026

Fixes #1849

The describe command previously displayed output horizontally as a table, which made it hard to read when there were many columns or long content values.

This change converts the cursor results from the describe query into a dictionary and returns an ObjectResult instead of QueryResult. This causes the output to display as key-value pairs vertically, significantly improving readability.

Changes:

  • Modified function in
  • Added import for
  • Convert cursor rows to dictionary with property names as keys
  • Return for vertical display instead of for horizontal table

Testing:

  • Code compiles without syntax errors
  • Follows existing patterns used elsewhere in the codebase for vertical output display

…adability

Fixes snowflakedb#1849

The describe command now converts query results into a dictionary
and returns an ObjectResult instead of QueryResult, causing the
output to display as key-value pairs vertically rather than as
a horizontal table. This improves readability when there are
many columns or long content values.
@machov machov requested a review from a team as a code owner February 25, 2026 05:44
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

Successfully merging this pull request may close these issues.

SNOW-1797974: snow describe shows all columns horizontally making it hard to read

1 participant