YTsaurus
Experimental feature. Learn more.
Not supported in ClickHouse Cloud
YTsaurus テーブルエンジンを使用すると、YTsaurus クラスターからデータをインポートできます。
テーブルの作成
参考
これは実験的な機能であり、将来のリリースでは後方互換性のない方法で変更される可能性があります。
allow_experimental_ytsaurus_table_engine
設定を使用して YTsaurus テーブルエンジンの使用を有効にします。
次のように設定できます:
SET allow_experimental_ytsaurus_table_engine = 1
。
エンジンパラメータ
http_proxy_url
— YTsaurus HTTP プロキシへの URL。cypress_path
— データソースへの Cypress パス。oauth_token
— OAuth トークン。
使用例
YTsaurus テーブルを作成するクエリを示します:
テーブルからデータを返すには、次のように実行します:
データ型
原始データ型
YTsaurus データ型 | Clickhouse データ型 |
---|---|
int8 | Int8 |
int16 | Int16 |
int32 | Int32 |
int64 | Int64 |
uint8 | UInt8 |
uint16 | UInt16 |
uint32 | UInt32 |
uint64 | UInt64 |
float | Float32 |
double | Float64 |
boolean | Bool |
string | String |
utf8 | String |
json | JSON |
yson(type_v3) | JSON |
uuid | UUID |
date32 | Date (未対応) |
datetime64 | Int64 |
timestamp64 | Int64 |
interval64 | Int64 |
date | Date (未対応) |
datetime | DateTime |
timestamp | DateTime64(6) |
interval | UInt64 |
any | String |
null | Nothing |
void | Nothing |
T with required = False | Nullable(T) |
複合型
YTsaurus データ型 | Clickhouse データ型 |
---|---|
decimal | Decimal |
optional | Nullable |
list | Array |
struct | NamedTuple |
tuple | Tuple |
variant | Variant |
dict | Array(Tuple(...)) |
tagged | T |
関連情報