table_compression

使用状況

view: my_view {
derived_table: {
table_pression: GZIP
...
}
}
階層
table_compression
デフォルト値
GZIP

許可
GZIP または SNAPPY

特別なルール
table_compression特定の言語でのみサポートされます。

定義

table_compression パラメータでは、永続的な派生テーブル(PDT)が Athena データベース内で持つ圧縮(GZIP または SNAPPY)を指定します。

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

table_compression をサポートしている言語のリストについては、下記の table_compression の言語サポート セクションをご覧ください。

table_compression パラメータは、PDT や集計テーブルなど、永続なテーブルでのみ機能します。table_compression は、永続化戦略のない派生テーブルではサポートされていません。

SNAPPY 圧縮を使用して、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_compression の言語サポート

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