Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl -u user:passwd [-H "sql: ${load_sql}"...] -T data.file -XPUT http://load_host:http_port/api/_http_load


# -- load_sql
# insertCREATE intoTABLE db.table (col, ...) select col BIGINT PRIMARY KEY NOT ENFORCED, ...) fromWITH http_load("property1"="value1");


# http parameters
# (
#     ('sequence.field' = 'dt'); 
# INSERT INTO db.table (col, ...) SELECT col, ... FROM http_load (file:////<path>) WITH ("column_separator" = ",",
#     "format" = "CSV",
#     ...
# )csv");

Return Results

Since Load Action is a synchronous import method, the results of the import are directly returned to the user through the return value created for the import.

...