メインコンテンツまでスキップ
バージョン: 4.x

ORC

この文書では、DorisでORC形式のデータファイルを読み込む方法について説明します。

サポートされている読み込み方法

以下の読み込み方法がORC形式のデータをサポートしています:

使用例

このセクションでは、異なる読み込み方法でのORC形式の使用方法を示します。

Stream Load

curl --location-trusted -u <user>:<passwd> \
-H "format: orc" \
-T example.orc \
http://<fe_host>:<fe_http_port>/api/example_db/example_table/_stream_load

ブローカー負荷

LOAD LABEL example_db.example_label
(
DATA INFILE("s3://bucket/example.orc")
INTO TABLE example_table
FORMAT AS "orc"
)
WITH S3
(
...
);

TVF Load

INSERT INTO example_table
SELECT *
FROM S3
(
"path" = "s3://bucket/example.orc",
"format" = "orc",
...
);