Skip to content

Commit fe0406b

Browse files
committedFeb 19, 2025
Move SQL reference to new Data Cloud SQL reference
1 parent 1b3e5d7 commit fe0406b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+80
-7927
lines changed
 

‎website/docs/guides/hyper_file/create_update.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The script consist of 3 high-level steps:
4242

4343
1. Start a Hyper process. The [`HyperProcess`](../../hyper-api/hyper_process)
4444
2. Create a connection to the `.hyper` file. Since we create the [`Connection`](../../hyper-api/connection) class with the `CreateMode.CREATE_AND_REPLACE`, the `.hyper` file will be automatically created if it does not exist yet, and will be overwritten if a file with that name already exists.
45-
3. Defining the table. In this case, we are using the Python utilities `TableDefinition` and `catalog.create_table`. We could have also used a [CREATE TABLE](../../sql/command/create_table) SQL command.
46-
4. Insert the data. In the example, we use the `Inserter` utility to provide the data from Python. You can also use [INSERT](../../sql/command/insert) or [COPY](../../sql/command/copy_from) statements or any other means to load data into the table. E.g., you can thereby directly load your table from a CSV file.
45+
3. Defining the table. In this case, we are using the Python utilities `TableDefinition` and `catalog.create_table`. We could have also used a [CREATE TABLE](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/create-table.html) SQL command.
46+
4. Insert the data. In the example, we use the `Inserter` utility to provide the data from Python. You can also use [INSERT](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/insert.html) or [COPY](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/copy-from.html) statements or any other means to load data into the table. E.g., you can thereby directly load your table from a CSV file.
4747

4848
#### File Format Versions
4949

@@ -64,7 +64,7 @@ The main difference when connecting is that you use `CreateMode.NONE` instead of
6464
By using `CreateMode.NONE`, Hyper will connect to a pre-existing file instead of recreating a new, empty file.
6565
Since the default for `CreateMode` is `NONE`, you can also just leave this parameter out completely.
6666

67-
You can then use SQL commands ([INSERT](../../sql/command/insert), [UPDATE](../../sql/command/update), [DELETE](../../sql/command/delete), [COPY](../../sql/command/copy_from), ...) or the `Inserter` utility class to change the data in the table.
67+
You can then use SQL commands ([INSERT](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/insert.html), [UPDATE](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/update.html), [DELETE](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/delete.html), [COPY](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/copy-from.html) or the `Inserter` utility class to change the data in the table.
6868
You could also create new tables or drop existing tables.
6969

7070
The following example removes rows with a `value < 50` and appends two new row to an existing table within an extract file:

‎website/docs/guides/hyper_file/geodata.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ with Inserter(connection, geo_table, column_mappings, inserter_definition = inse
6262
inserter.execute()
6363
```
6464

65-
Note if you have WKT data in a comma-separated value (CSV) file, you can use the [COPY](/docs/sql/command/copy_from) command to insert the data from a CSV file. The command automatically converts the WKT strings to the `tableau.tabgeography` data type. For more information, see the [Example code using copy from CSV](#example-code-using-copy-from-csv) and the Help topic [Insert Data Directly from CSV Files](./insert_csv) and the CSV sample on GitHub, [hyper-api-samples](https://github.com/tableau/hyper-api-samples).
65+
Note if you have WKT data in a comma-separated value (CSV) file, you can use the [COPY](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/copy-from.html) command to insert the data from a CSV file. The command automatically converts the WKT strings to the `tableau.tabgeography` data type. For more information, see the [Example code using copy from CSV](#example-code-using-copy-from-csv) and the Help topic [Insert Data Directly from CSV Files](./insert_csv) and the CSV sample on GitHub, [hyper-api-samples](https://github.com/tableau/hyper-api-samples).
6666

6767
## Example code using the Inserter
6868

0 commit comments

Comments
 (0)