Skip to content

Commit 73bc2b6

Browse files
Apply suggestions from code review
Co-authored-by: maltesander <malte.sander.it@gmail.com>
1 parent e306fc1 commit 73bc2b6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • docs/modules/trino/pages/usage-guide/catalogs

docs/modules/trino/pages/usage-guide/catalogs/index.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,13 @@ A `TrinoCluster` can, once created, detect and use new catalogs that have been s
108108
=== Catalog name tweaking
109109

110110
By default the name of the catalog in Trino is inferred from the `.metadata.name` of the TrinoCatalog object.
111-
This ensures that no catalog names clash, as their can only be one TrinoCatalog with a given name.
111+
This ensures that no catalog names clash, as there can only be one TrinoCatalog with a given name.
112112

113113
One inconvenience is that you need to quote catalogs (or schemas and tables for that matter) containing `-` in Trino, while `_` is fine.
114-
As Kubernetes doesn't allow `_` in the object names, we offer a feature to replace `-` with `_`, which allows you to use valid Kubernetes names, but keeps the convenience of `_` in catalog names.
114+
As Kubernetes doesn't allow `_` in the object names, we offer a feature to replace `-` with `_`, which allows you to use valid Kubernetes names, but keeps the convenience of using `_` in catalog names.
115115

116-
You can enable it like this, the Trino catalog will be called `my_postgres`:
116+
In order to replace `-` with `_`, use the setting `name.inferred.replaceHyphensWithUnderscores`.
117+
The Trino catalog will be called `my_postgres`:
117118

118119
[source,yaml]
119120
----

0 commit comments

Comments
 (0)