عارض SQL

يتيح لك عارض SQL الخاص ب Ilum تشغيل استعلامات SQL مباشرة في واجهة المستخدم ، دون الحاجة إلى كتابة أي كود Scala أو Python . تم تصميمه من أجل البساطة ، ويوفر واجهة سهلة الاستخدام لتشغيل استعلامات SQL ، استكشاف البيانات واكتساب الرؤى بسرعة وكفاءة.
Whether you are prototyping, analyzing data, or debugging, the SQL Viewer allows you to focus solely on the query logic without managing the underlying code.
إنه قابل للتكوين بدرجة كبيرة من خلال قيم نشر واجهة المستخدم أو Helm ، مما يسمح بالمرونة في ، على سبيل المثال ، اختيار تنسيق جدول مختلف ، مثل Delta Lake و Apache Hudi ، أو أباتشي آيسبرغ.
كيف ستساعدك؟
يعد SQL Viewer أداة قوية لإعداد التقارير وتصحيح الأخطاء أثناء تطبيق Spark تطور. بدلا من إنشاء برنامج Spark SQL بالكامل للاستعلام عن جداولك ، يمكنك إرسال SQL العبارات مباشرة داخل واجهة Ilum.
For debugging, SQL Viewer is invaluable—eliminating the need to repeatedly write, compile, and submit code like:
valمجموعة البيانات = شراره . SQL ( "select ...")
بدلا من ذلك، يمكنك اختبار عبارات SQL بشكل تفاعلي دون إعادة إنشاء جلسات العمل في كل مرة.
بالإضافة إلى نتائج الاستعلام ، يوفر SQL Viewer أدوات استكشاف البيانات وتصورها ، جنبا إلى جنب باستخدام السجلات وإحصائيات التنفيذ، مما يمنحك رؤى أعمق حول عملية الاستعلام.
The SQL Viewer is also integrated with different data catalogs, which means that you can seamlessly query data from previously created tables.
بدء استخدام عارض SQL
To use the SQL Viewer, you need to deploy Ilum with the SQL Viewer feature enabled. For setup instructions, refer to the صفحة الإنتاج .
Once set up, the SQL viewer should be available on the sidebar. Inside, Apache Spark and DuckDB should be available as options by default.
Ilum loads in example queries and notebooks to help new users get started quickly.
Example query and notebook loading ممكن by default.
However, you can disable it by setting ilum-core.examples.sqlQuery=false (disables loading queries) and
ilum-core.examples.sqlNotebook=false (disables loading notebooks) in the Helm chart values.

The SQL Viewer consists of three parts:
-
SQL query editor – The center part of the SQL Viewer, which allows you to write and execute SQL queries. It comes with a simple text editor in the query mode and a notebook-like interface in the notebook mode.
-
The sidebar – Contains your different SQL queries and notebooks in the "Queries" tab and a mini version of the مستكشف الجدول in the "Resources" tab.
-
The output - Will show up in the bottom part of the screen when you execute a query. It has a table with the results of the query, a data exploration tool, execution statistics, and logs.
The data exploration tool in the SQL Viewer.
محركات بديلة
The SQL Viewer supports multiple engines, as of now: Spark SQL, Trino, and DuckDB.
| شرارة SQL | الثلاثي | بطة دي بي | |
|---|---|---|---|
| نشر | On cluster and dynamic | On cluster | Embedded |
| حالة الاستخدام | ETL, Big data processing | Interactive analytics | Interactive analytics, medium-data ETL, prototyping |
| Storage Support | Comprehensive (with additional JARs) | Sufficient | Lacking (but quickly expanding) |
| Concurrency | High (with tuning) | Very high | Limited |
| Performance | Good for large datasets (with tuning) | Good | Good |
| Overhead | Very high | Medium (always-on coordinator) | Very low (in-process) |
| Lineage support | Extensive | Existing (harder to configure) | With custom extension (supported in Ilum) |
| التمدد | Easy (big extension ecosystem) | Moderate (smaller extension ecosystem) | Limited (smaller extension catalog, C++ based) |
While using the Spark SQL engine will ensure compatibility with most Ilum components, we recommend checking out the other options since they offer a much better ad-hoc query experience than Spark SQL.
When changing an engine, your tables might be accessible differently or not be available at all due to the differences in the underlying storage.
| Metastore | شرارة SQL | الثلاثي | بطة دي بي |
|---|---|---|---|
| Hive Metastore | ✅ | ✅ | 🟨 (subset of functionalities supported with extension) |
| نيسي | ✅ | ✅ | 🟨 (possible, but unergonomic) |
| DuckLake | ❌ |