table_format

用途

view: my_view {
  derived_table: {
    table_format: PARQUET
    ...
  }
}
階層
table_format
デフォルト値
PARQUET

許可
PARQUET、ORC、AVRO、JSON、TEXTFILE

特別なルール
table_format は、特定の言語でのみサポートされています。

定義

table_format パラメータは、永続的な派生テーブル(PDT)が Athena データベースで持つ形式を指定します。次のいずれかになります。

  • Parquet
  • Optimized Row Columnar(ORC)
  • Avro
  • JavaScript Object Notation(JSON)
  • テキスト ファイル

詳しくは、Amazon Athena のドキュメントをご覧ください。

table_format をサポートする言語の一覧については、table_format の言語サポートセクションをご覧ください。

table_format パラメータは、PDT やサマリー表など、永続的なテーブルでのみ機能します。table_format は、永続性戦略のない派生テーブルではサポートされていません。

例

ORC 形式を使用して Amazon Athena データベースに customer_order_facts PDT を作成します。

view: customer_order_facts {
  derived_table: {
    explore_source: order {
      column: customer_id { field: order.customer_id }
      column: date { field: order.order_time }
      column: city { field: users.city }
      column: age_tier { field: users.age_tier }
      derived_column: num_orders {
        sql: COUNT(order.customer_id) ;;
      }
    }
    table_format: ORC
    table_compression: SNAPPY
    datagroup_trigger: daily_datagroup
  }
}

table_format 言語のサポート

table_format を使用できるかどうかは、Looker 接続で使用されているデータベース言語によって異なります。Looker の最新リリースでは、次の言語が table_format をサポートしています。

方言 サポート対象
Actian Avalanche
Amazon Athena
Amazon Aurora MySQL
Amazon Redshift
Amazon Redshift 2.1+
Amazon Redshift Serverless 2.1+
Apache Druid
Apache Druid 0.13.x - 0.17.x
Apache Druid 0.18+
Apache Hive 2.3+
Apache Hive 3.1.2+
Apache Spark 3+
ClickHouse
ClickHouse 26+
Cloudera Impala 3.1+
Cloudera Impala 3.1+ with Native Driver
Cloudera Impala with Native Driver
DataVirtuality
Databricks
Denodo 7
Denodo 8 & 9
Dremio
Dremio 11+
Dremio 26+ with Arrow Flight SQL
Exasol
Google BigQuery Legacy SQL
Google BigQuery Standard SQL
Google Cloud AlloyDB for PostgreSQL
Google Cloud PostgreSQL
Google Cloud SQL
Google Spanner
Greenplum
HyperSQL
IBM Netezza
MariaDB
Microsoft Azure PostgreSQL
Microsoft Azure SQL Database
Microsoft Azure Synapse Analytics
Microsoft SQL Server 2008+
Microsoft SQL Server 2012+
Microsoft SQL Server 2016
Microsoft SQL Server 2017+
MongoBI
MongoSQL
MySQL
MySQL 8.0.12+
Oracle
Oracle ADWC
PostgreSQL 9.5+
PostgreSQL pre-9.5
PrestoDB
PrestoSQL
SAP HANA
SAP HANA 2+
SingleStore
SingleStore 7+
Snowflake
Teradata
Trino
Vector
Vertica