sling-cli
sling-cli copied to clipboard
StarRocks: Use FILES to bulk load
https://docs.starrocks.io/docs/sql-reference/sql-functions/table-functions/files/
Yes.. the issue is that files is only for parquet. Doesn't still work with JSON and CSV yet. It'll take some time so thats why I didn't want you to waste your engineering time and just do inserts for now and then when it gets all moved to files(), then we can refactor for performance.
Also behind the scenes, when you do single inserts in the StarRocks front end, we batch them up and stream load it. So basically our MySQL layer is opinionated insert micro batches.
Files() is just a nice interface to stream load.