airflow.providers.google.cloud.transfers.trino_to_gcs

TrinoToGCSOperator

以 JSON、CSV 或 Parquet 格式将数据从 TrinoDB 复制到 Google Cloud Storage。

模块内容

class airflow.providers.google.cloud.transfers.trino_to_gcs.TrinoToGCSOperator(*, trino_conn_id='trino_default', **kwargs)[source]

基类:airflow.providers.google.cloud.transfers.sql_to_gcs.BaseSQLToGCSOperator

以 JSON、CSV 或 Parquet 格式将数据从 TrinoDB 复制到 Google Cloud Storage。

参数:

trino_conn_id (str) – 对特定 Trino hook 的引用。

ui_color = '#a0e08c'[source]
type_map[source]
trino_conn_id = 'trino_default'[source]
property db_hook: airflow.providers.trino.hooks.trino.TrinoHook[source]
query()[source]

查询 trino 并返回结果的游标。

field_to_bigquery(field)[source]

将 trino 字段类型转换为 BigQuery 字段类型。

convert_type(value, schema_type, **kwargs)[source]

不执行任何操作。Trino 在传输层使用 JSON,因此类型很简单。

参数:
  • value – Trino 列值

  • schema_type – BigQuery 数据类型

get_openlineage_facets_on_start()[source]

此条目有帮助吗?