Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions modules/API/pages/gsql-endpoints.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,8 @@ Below are some examples:

* *Local files*: `[{"name":"load_job","sys.data_root":"/tmp","dataSources":[{"filename":"f","path":"./data","name":"file"}]}]`

* *GCS*: `[{"name":"stream_csv","sys.data_root":"/tmp","verbose":true,"dryrun":true,"interval":1,"maxNumError":1,"maxPercentError":1,"dataSources":[{"filename":"file_Comment","name":"s1","path":"$s1:gs://tg_ldbc_snb/sf0.1_csv/dynamic/Comment"}],"configs":{"CONCURRENCY":2,"eof":"false","BATCH_SIZE":3}}]`

==== Example

[,tabs]
Expand Down Expand Up @@ -2145,6 +2147,23 @@ For the parameters:
* The three keys inside the `configs` object are case-insensitive. However, other keys in the JSON payload are case-sensitive.
====

[NOTE]
====
To run a loading job with Google Cloud Storage (GCS):

* Create the data source first using `CREATE DATA_SOURCE`.
* The GCS service-account key file must use `"type": "gcs"` instead of `"service_account"`.

Example:

[source,gsql]
----
CREATE DATA_SOURCE s1 = "gcp.json" FOR GRAPH test_graph
----

The GCS path uses the `gs://` URI format.
====

We have details of the xref:{page-component-version}@gsql-ref:ddl-and-loading:running-a-loading-job.adoc#_options[options] and xref:{page-component-version}@gsql-ref:ddl-and-loading:running-a-loading-job.adoc#_parameters[parameters] available for running a loading job in GSQL.

'''
Expand Down