Skip to content

Commit 8673679

Browse files
authored
Multiple connectors: replace dashes with underscores in catalog, schema, table, and volume names and paths (#553)
1 parent 77d6c06 commit 8673679

26 files changed

+72
-30
lines changed

snippets/destination_connectors/databricks_delta_table_rest_create.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ curl --request 'POST' --location \
1616
"client_secret": "<client-secret>",
1717
"volume": "<volume>",
1818
"catalog": "<catalog>",
19-
"volume_path": "<volume-path>",
19+
"volume_path": "<volume_path>",
2020
"schema": "<schema>",
2121
"database": "<database>",
22-
"table_name": "<table-name>"
22+
"table_name": "<table_name>"
2323
}
2424
}'
2525
```

snippets/destination_connectors/databricks_delta_table_sdk.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
2323
client_secret="<client-secret>",
2424
volume="<volume>",
2525
catalog="<catalog>",
26-
volume_path="<volume-path>",
26+
volume_path="<volume_path>",
2727
schema="<schema>",
2828
database="<database>",
29-
table_name="<table-name>"
29+
table_name="<table_name>"
3030
)
3131
)
3232
)

snippets/destination_connectors/databricks_volumes_rest_create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ curl --request 'POST' --location \
1313
"catalog": "<catalog>",
1414
"schema": "<schema>",
1515
"volume": "<volume>",
16-
"volume_path": "<volume-path>",
16+
"volume_path": "<volume_path>",
1717
1818
# For Databricks OAuth machine-to-machine (M2M) authentication:
1919
"client_secret": "<client-secret>",

snippets/destination_connectors/databricks_volumes_sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
2020
catalog="<catalog>",
2121
schema="<schema>",
2222
volume="<volume>",
23-
volume_path="<volume-path>",
23+
volume_path="<volume_path>",
2424

2525
# For Databricks OAuth machine-to-machine (M2M) authentication:
2626
client_secret="<client-secret>",

snippets/destination_connectors/postgresql_rest_create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ curl --request 'POST' --location \
1414
"port": "<port>",
1515
"username": "<username>",
1616
"password": "<password>",
17-
"table_name": "<table-name>",
17+
"table_name": "<table_name>",
1818
"batch_size": <batch-size>
1919
}
2020
}'

snippets/destination_connectors/postgresql_sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
2121
port="<port>",
2222
username="<username>",
2323
password="<password>",
24-
table_name="<table-name>",
24+
table_name="<table_name>",
2525
batch_size=<batch-size>
2626
)
2727
)

snippets/destination_connectors/snowflake_rest_create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ curl --request 'POST' --location \
1818
"role": "<role>",
1919
"password": "<password>",
2020
"record_id_key": "<record-id-key>",
21-
"table_name": "<table-name>",
21+
"table_name": "<table_name>",
2222
"batch_size": <batch-size>
2323
}
2424
}'

snippets/destination_connectors/snowflake_sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
2525
role="<role>",
2626
password="<password>",
2727
record_id_key="<record-id-key>",
28-
table_name="<table-name>",
28+
table_name="<table_name>",
2929
batch_size=<batch-size>
3030
)
3131
)

snippets/general-shared-text/databricks-delta-table-api-placeholders.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
If the target table and volume are in the same schema (formerly known as a database), then `<database>` and `<schema>` will have the same values.
1010

11-
- `<table-name>` (_required_): The name of the target table in Unity Catalog.
11+
- `<table_name>` (_required_): The name of the target table in Unity Catalog.
1212
- `<schema>`: The name of the schema (formerly known as a database) in Unity Catalog for the target volume. The default is `default` if not otherwise specified.
1313

1414
If the target volume and table are in the same schema (formerly known as a database), then `<schema>` and `<database>` will have the same values.
1515

1616
- `<volume>` (_required_): The name of the target volume in Unity Catalog.
17-
- `<volume-path>`: Any target folder path inside of the volume to use instead of the volume's root. If not otherwise specified, processing occurs at the volume's root.
18-
17+
- `<volume_path>`: Any target folder path inside of the volume to use instead of the volume's root. If not otherwise specified, processing occurs at the volume's root.
1918

19+
<Note>
20+
Using dashes (`-`) in the names of catalogs, schemas (formerly known as databases), tables, and volumes might cause isolated issues with the connector. It is
21+
recommended to use underscores (`_`) instead of dashes in the names of catalogs, schemas, tables, and volumes.
22+
</Note>
2023

snippets/general-shared-text/databricks-delta-table-cli-api.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ The following environment variables:
2222

2323
- `DATABRICKS_TABLE` - The name of the table inside of the schema (formerly known as a database), represented by `--table-name` (CLI) or `table_name` (Python). The default is `elements` if not otherwise specified.
2424

25+
<Note>
26+
Using dashes (`-`) in the names of catalogs, schemas (formerly known as databases), tables, and volumes might cause isolated issues with the connector. It is
27+
recommended to use underscores (`_`) instead of dashes in the names of catalogs, schemas, tables, and volumes.
28+
</Note>
29+
2530
For the SQL-based implementation, add these environment variables:
2631

2732
- `DATABRICKS_RECORD_ID_KEY` - The name of the column that uniquely identifies each record in the table, represented by `--record-id-key` (CLI) or `record_id_key` (Python).

0 commit comments

Comments
 (0)