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
# CREATEINSERT TABLEINTO db.table 
# (col
# BIGINT PRIMARY KEY NOT ENFORCEDcol, ...) WITH ('sequence.field' = 'dt');
# ) 
# INSERTSELECT INTO
# db.table (col, ...) SELECT col, ... 
# FROM http_load (file:////<path>) WITH ( with
# (
#    "column_separator" = ",",
#    "format" = "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.

...