diff --git a/modules/API/pages/gsql-endpoints.adoc b/modules/API/pages/gsql-endpoints.adoc index a664558f..b909ee9b 100644 --- a/modules/API/pages/gsql-endpoints.adoc +++ b/modules/API/pages/gsql-endpoints.adoc @@ -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] @@ -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. '''