You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrate/trino/tutorial.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ For example, on macOS you can `brew install trino`. Start the server with `trino
11
11
12
12
## Connector configuration
13
13
14
-
Because CrateDB speaks the PostgreSQL wire protocol, use Trino’s [PostgreSQL connector](https://trino.io/docs/current/connector/postgresql.html). Create a catalog properties file to configure the connection:
14
+
Because CrateDB speaks the PostgreSQL wire protocol, you can use
15
+
[Trino’s PostgreSQL connector]. Create a catalog properties file
16
+
to configure the connection:
15
17
16
18
```ini
17
19
connector.name=postgresql
@@ -43,7 +45,7 @@ Because CrateDB speaks the PostgreSQL wire protocol, use Trino’s [PostgreSQL c
43
45
- macOS (Homebrew): `/usr/local/etc/trino/catalog/postgresql.properties` (or `/opt/homebrew/etc/trino/catalog/...` on Apple Silicon)
44
46
- Linux (tarball/systemd): `$TRINO_HOME/etc/catalog/postgresql.properties` or `/etc/trino/catalog/postgresql.properties`
45
47
46
-
* Querying `OBJECT` columns: Columns of the data type `OBJECT` can usually be queried using the bracket notation, e.g. `SELECT my_object_column['my_object_key'] FROM my_table`. In Trino’s SQL dialect, the identifier needs to be wrapped in double quotes, such as `SELECT "my_object_column['my_object_key']" FROM my_table`.
48
+
* Querying `OBJECT` columns: Columns of the data type `OBJECT` can usually be queried using the bracket notation e.g.,`SELECT my_object_column['my_object_key'] FROM my_table`. In Trino’s SQL dialect, the identifier needs to be wrapped in double quotes, such as `SELECT "my_object_column['my_object_key']" FROM my_table`.
47
49
*`INSERT` queries: When inserting, Trino addresses tables with `catalog_name.schema_name.table_name`, which currently isn't supported by CrateDB. Please see [crate/crate#12658](https://github.com/crate/crate/issues/12658) on addressing this issue.
48
50
* Data types: Not all of Trino’s [data types](https://trino.io/docs/current/language/types.html) can be mapped to CrateDB data types and vice versa.
49
51
* For creating tables, it can be advisable to run the `CREATE TABLE` statement directly in CrateDB. This approach is also recommended if you want to configure custom table settings, such as sharding, partitioning, or replication.
@@ -56,3 +58,6 @@ Because CrateDB speaks the PostgreSQL wire protocol, use Trino’s [PostgreSQL c
56
58
With a few parameter tweaks, Trino connects to CrateDB. This guide reflects a
57
59
short compatibility test and is not exhaustive. If you discover additional
0 commit comments