table_format

사용

view: my_view {
  derived_table: {
    table_format: PARQUET
    ...
  }
}
계층 구조
table_format
기본값
PARQUET

수락
PARQUET, ORC, AVRO, JSON 또는 TEXTFILE

특별 규칙
table_format특정 방언에서만 지원됩니다.

정의

table_format 매개변수는 Athena 데이터베이스에서 영구 파생 테이블 (PDT)이 가질 형식을 지정하며, 다음 중 하나일 수 있습니다.

  • Parquet
  • 최적화된 행 열 형식 (ORC)
  • Avro
  • JavaScript 객체 표기법 (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+
Apache Druid 0.18+
Apache Hive 2.3+
Apache Hive 3.1.2+
Apache Spark 3+
ClickHouse
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+
Exasol
Google BigQuery Legacy SQL
Google BigQuery Standard SQL
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
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