העקרונות הבסיסיים של SQL Runner

‫SQL Runner מאפשר גישה ישירה למסד הנתונים ולנצל את הגישה הזו במגוון דרכים. באמצעות SQL Runner, אפשר לנווט בקלות בין הטבלאות בסכימה, להשתמש ב'ניתוח אד-הוק' משאילתת SQL, להריץ שאילתות תיאוריות שנכתבו מראש על הנתונים, לראות את ההיסטוריה של SQL Runner, להוריד תוצאות, לשתף שאילתות, להוסיף ל-LookML project כטבלה נגזרת ולבצע משימות שימושיות אחרות.

בדף הזה מוסבר איך להגיע אל SQL Runner ומוצגים הדיאלקטים של מסדי הנתונים שתומכים בתכונות של SQL Runner. מידע נוסף זמין במאמרי העזרה הבאים:

אם יש לכם הרשאות לראות LookML ולהשתמש ב-SQL Runner, אתם יכולים לעבור ל-SQL Runner בשתי דרכים:

  • בתפריט פיתוח, בוחרים באפשרות SQL Runner.

  • מתוך ניתוח, לוחצים על SQL בסרגל הנתונים כדי לראות את ה-SQL. אחר כך לוחצים על Open in SQL Runner (פתיחה ב-SQL Runner) כדי לראות את השאילתה ב-SQL Runner, או על Explain in SQL Runner (הסבר ב-SQL Runner) כדי לפתוח את SQL Runner ולבקש את תוכנית הביצוע של מסד הנתונים עבור השאילתה.

שימוש בסיסי ב-SQL Runner

בקטע הזה מוסבר איך להשתמש ב-SQL Runner כדי לגשת ישירות לטבלאות בסכימה, להריץ שאילתת SQL על הנתונים ולראות את תוצאות השאילתה.

  1. בוחרים את החיבור שרוצים לשלוח לו שאילתה.
  2. בוחרים את הסכימה שרוצים לשלוח לה שאילתה. בחיבורים ל-Google BigQuery, בוחרים את הפרויקט (אם החיבור ל-BigQuery תומך במספר מסדי נתונים) ואת מערך הנתונים.
  3. בוחרים טבלה כדי להציג את העמודות שלה באזור התוצאות.
  4. אפשר גם ללחוץ על הסמל ⊝ כדי לכווץ את החלונית הימנית. אם החלונית מכווצת, לוחצים על הסמל ⊕ כדי להרחיב אותה.
  5. בודקים את ניב ה-SQL של מסד הנתונים שמשמש לשאילתה. הניב מוצג בצד שמאל של סרגל השאילתה.
  6. כותבים פקודת SQL בתיבת הטקסט שמתחת לסרגל Query.
  7. בוחרים באפשרות Run כדי להריץ את שאילתת ה-SQL.
  8. המידע שמוחזר ממסד הנתונים מוצג באזור Results.

הדמיות ב-SQL Runner

אם האדמין שלכם ב-Looker הפעיל את תכונת Labs‏ SQL Runner Vis, תוכלו ליצור תרשימים ישירות ב-SQL Runner.

מידע נוסף זמין בדף התיעוד בנושא שימוש ב-SQL Runner ליצירת שאילתות וניתוחים.

דיאלקטים נתמכים של מסדי נתונים לתכונות של SQL Runner

כדי ש-Looker יתמוך בתכונות של SQL Runner בפרויקט Looker, הדיאלקט של מסד הנתונים צריך לתמוך בהן גם כן. בטבלאות הבאות אפשר לראות באילו ניבים נתמכת כל תכונה של SQL Runner.

הדיאלקטים האלה תומכים בתהליכים של SQL Runner Show:

ניב האם יש תמיכה?
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
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 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
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

הדיאלקטים האלה תומכים בפקודה Describe Table של SQL Runner:

ניב האם יש תמיכה?
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
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 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
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

הדיאלקטים האלה תומכים באפשרות Show Indexes (הצגת אינדקסים) ב-SQL Runner:

ניב האם יש תמיכה?
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
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 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
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

הדיאלקטים האלה תומכים ב-SQL Runner Select 10:

ניב האם יש תמיכה?
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
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 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
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

הדיאלקטים האלה תומכים ב-SQL Runner Count:

ניב האם יש תמיכה?
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
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 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
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

הדיאלקטים האלה תומכים ב-SQL Explain:

ניב האם יש תמיכה?
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
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 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
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