Skip to content

Commit a6675cc

Browse files
Java 17 + Fixed-Width Output Fields in CLI + Extra CSS for code snippets
1 parent 388c71c commit a6675cc

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

docs/cli/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,27 @@ Currently, auth using bearer token is supported. Please specify the token via --
1717
For detailed help on entity specific operations, use bin/uc <entity> --help
1818
```
1919

20+
## Fixed-Width Output Fields
21+
22+
As of [this commit]({{ uc.commit }}/06ea446a3a00e78f82a77039dae22339152e2e1d), the tabular output of Unity Catalog CLI always displays the entire values of the following columns (case-insensitive):
23+
24+
* `NAME`
25+
* Any column with `ID` suffix (e.g., `TABLE_ID`)
26+
27+
``` { .console .no-copy }
28+
$ ./bin/uc table list --catalog unity --schema default
29+
┌─────────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────────────────────────────┐
30+
│ NAME │CATALOG_NAME│SCHEMA_NAME │ TABLE_TYPE │DATA_SOURCE_│ COLUMNS │STORAGE_LOCA│ COMMENT │ PROPERTIES │ CREATED_AT │ UPDATED_AT │ TABLE_ID │
31+
│ │ │ │ │ FORMAT │ │ TION │ │ │ │ │ │
32+
├─────────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────────────────────────────┤
33+
│numbers │unity │default │EXTERNAL │DELTA │[{"name":...│file:///U...│External ...│{"key1":"...│172042953...│172042953...│b5d6db68-5eca-485c-be5f-5f53d4f27f60│
34+
├─────────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────────────────────────────┤
35+
│marksheet_uniform│unity │default │EXTERNAL │DELTA │[{"name":...│file:///t...│Uniform t...│{"key1":"...│172042953...│172042953...│76874c28-0ebf-46e7-9971-eb164bd62c46│
36+
├─────────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────────────────────────────┤
37+
│marksheet │unity │default │MANAGED │DELTA │[{"name":...│file:///U...│Managed t...│{"key1":"...│172042953...│172042953...│25ca07aa-1350-4104-b485-13b9ad1f5d72│
38+
└─────────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────────────────────────────┘
39+
```
40+
2041
## Entities
2142

2243
Unity Catalog CLI supports the following entities:

docs/features/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ The server and CLI can be started on command line using `bin/start-uc-server` an
1818

1919
## Running Unity Catalog
2020

21-
Java 11 or above is required to run Unity Catalog.
21+
Java 17 or above is required to build and run Unity Catalog.
2222

2323
```text
2424
$ java --version
25-
openjdk 17.0.10 2024-01-16 LTS
26-
OpenJDK Runtime Environment Zulu17.48+15-CA (build 17.0.10+7-LTS)
27-
OpenJDK 64-Bit Server VM Zulu17.48+15-CA (build 17.0.10+7-LTS, mixed mode, sharing)
25+
openjdk 17.0.11 2024-04-16 LTS
26+
OpenJDK Runtime Environment Zulu17.50+19-CA (build 17.0.11+9-LTS)
27+
OpenJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)
2828
```
2929

3030
```text

docs/stylesheets/extra.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:root {
2+
--md-code-font: "Monaco Regular";
3+
}

mkdocs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ theme:
4646
icon: material/toggle-switch
4747
name: Switch to light mode
4848

49+
# https://squidfunk.github.io/mkdocs-material/customization/#additional-css
50+
extra_css:
51+
- stylesheets/extra.css
52+
4953
markdown_extensions:
5054
- admonition
5155
- attr_list
@@ -62,10 +66,15 @@ markdown_extensions:
6266
- pymdownx.emoji:
6367
emoji_index: !!python/name:material.extensions.emoji.twemoji
6468
emoji_generator: !!python/name:material.extensions.emoji.to_svg
69+
- pymdownx.highlight:
70+
anchor_linenums: true
71+
line_spans: __span
72+
pygments_lang_class: true
6573
- pymdownx.inlinehilite
6674
- pymdownx.magiclink
6775
- pymdownx.mark
6876
- pymdownx.smartsymbols
77+
- pymdownx.snippets
6978
- pymdownx.superfences
7079
- pymdownx.tasklist:
7180
custom_checkbox: true
@@ -92,6 +101,7 @@ extra:
92101
title: Unity Catalog
93102
uc:
94103
version: 0.1.0
104+
commit: https://github.com/unitycatalog/unitycatalog/commit
95105
github: https://github.com/unitycatalog/unitycatalog/blob/main
96106
armeria:
97107
version: 1.28.4

0 commit comments

Comments
 (0)