Skip to content

[UC CLI] Make table read honor --output json/jsonPretty#2

Closed
da115115 wants to merge 1 commit into
mainfrom
fix-uc-table-read-json-output
Closed

[UC CLI] Make table read honor --output json/jsonPretty#2
da115115 wants to merge 1 commit into
mainfrom
fix-uc-table-read-json-output

Conversation

@da115115

Copy link
Copy Markdown

Summary

  • Make uc table read honor --output json and --output jsonPretty.
  • Keep default non-JSON output behavior unchanged.

Changes

  • examples/cli/src/main/java/io/unitycatalog/cli/TableCli.java
    • Route table read to JSON records when JSON output is requested.
  • examples/cli/src/main/java/io/unitycatalog/cli/delta/DeltaKernelUtils.java
    • Add readDeltaTableAsRecords(...) to return row records for JSON serialization.

Validation

  • Reproduced issue where table read ignored JSON output flag.
  • sbt +clean +package +publishLocal +publishM2 succeeds.
  • Smoke test with temp table under /tmp returns JSON array for:
    • uc table read --full_name unity.default.myTableJson --max_results 5 --output json

@da115115

Copy link
Copy Markdown
Author

Closing this fork-only PR in favor of upstream PR: unitycatalog#1568

@da115115 da115115 closed this May 25, 2026
@da115115 da115115 deleted the fix-uc-table-read-json-output branch May 25, 2026 09:16
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.

2 participants