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 בטבלאות נגזרות בלי אסטרטגיית שמירה.

דוגמאות

יצירת PDT של customer_order_facts במסד נתונים של Amazon Athena באמצעות פורמט ORC:

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