Redefining ELT: A New Approach to ELT with Singdata Lakehouse
Problems and Challenges
In many data projects, especially those closely related to ML and AI, development often requires a mix of Python and SQL. For example, Python code is developed via Jupyter Notebook, while SQL code is developed using data management and development tools like DBeaver or VS Code. This approach frequently leads to issues such as a lack of version management and the absence of a unified scheduling service, making development and operations complex and difficult.
As modern data stacks evolve, next-generation BI and AI analysis products such as Metabase and MindsDB are also rapidly advancing. How a data platform tightly integrates into the modern data stack to provide a complete solution has become critically important.
For the growing volume of semi-structured data and vector data (such as CSV and JSON), relying on client-side parsing severely impacts overall processing speed. This demands that the data platform be capable of high-performance processing of structured data in tables as well as JSON data and vector data simultaneously. For example, the hourly GitHub event archive dataset provided by GH Archive is delivered in JSON format.
In data engineering tasks involving data cleaning and transformation, many intermediate tables often need to be developed before reaching the final target table. Improving efficiency in this area has become an important topic for boosting data engineer productivity.
A New ELT Approach with Singdata Lakehouse
The author attempts to use Singdata Lakehouse to find new solutions to the above problems from the following three perspectives.

Unified Data Task Development and Scheduling
Simplify the data task development and operations environment through Singdata Lakehouse, achieving unified task version management:
-
Python Task Development: From Jupyter Notebook development to Python task development in Singdata Lakehouse Studio.
-
SQL Task Development: From DBeaver SQL task development to SQL task development in Singdata Lakehouse Studio.
-
ML/AI Task Development: From MindsDB Web IDE to JDBC task development in Singdata Lakehouse Studio.
-
Task Scheduling and Operations: From Airflow to task scheduling and operations in Singdata Lakehouse Studio.

Multi-Data-Type Support
Singdata Lakehouse supports efficient storage and access for the following data types:
-
Common basic data types in tables
-
Common complex data types in tables
-
JSON
-
Vector
-
Full-text inverted index

Dynamic Table
The Dynamic Table provided by Singdata has the following typical features:
-
Declarative Programming: Use declarative SQL to define pipeline results without having to consider intermediate table logic, reducing complexity.
-
Transparent Orchestration: Manage refresh orchestration and scheduling by chaining together Dynamic Tables and regular tables.
-
Incremental Processing: Suitable for incremental workloads with excellent Dynamic Table performance.
-
Easy Switching: A single command transitions from batch processing to streaming processing, balancing cost and freshness.
-
Observability: Dynamic Tables can be managed through the Singdata Lakehouse Web Console Studio, improving observability.

Application Case: GHArchive Data ELT Implementation

Data Source Introduction: GHArchive
Open-source developers worldwide are engaged in millions of projects covering tasks such as writing code and documentation, fixing bugs, and submitting work. The GH Archive project records public GitHub event data, providing over 13 years of GitHub event data archives starting from February 12, 2011, and making the data more accessible for further analysis.
GitHub has over 15 event types, such as new commits (Push), forking a repository (Fork), creating new Issues, commenting, and adding members to projects. These events are aggregated into hourly archive files accessible via any HTTP client. Each archive file encodes events as reported by the GitHub API in JSON format. Users can download the raw data for self-processing, such as writing custom aggregation scripts or importing it into a database.
Example GitHub event data:
Development Task: Data Extraction (Extract)
Next, we develop a Python task through Singdata Lakehouse Studio to extract data from the GH Archive website into data lake storage (this solution uses Alibaba Cloud OSS).

Development Task: Data Loading (Load)
Singdata Lakehouse Studio supports loading data from data lakes into Lakehouse tables via offline sync tasks, storing it in optimized formats and enabling fine-grained permission management.

Development Task: Data Cleaning and Transformation (Transform)
Singdata Lakehouse Dynamic Tables support incremental refresh optimization by processing only changed data. Compared to traditional ETL tasks, Dynamic Tables eliminate the need for full data computation and do not require specifying incremental logic (such as partition alignment or using max(system/event_time)). Users simply declare the business logic, and the Dynamic Table automatically performs incremental computation optimization.
This article uses Dynamic Tables for data cleaning and transformation.

Ad Hoc Data Analysis
Singdata Lakehouse has a built-in, convenient SQL query interface where you can freely write SQL code, use variables, select clusters, and perform flexible ad hoc data analysis. It is also convenient for debugging.

Development Task: AI/ML Enhanced Analysis
Based on the JDBC task nodes provided by Lakehouse Studio, you can conveniently connect to MindsDB for enhanced data analysis.

Incremental Sync Task Scheduling
Configure scheduling and dependency relationships for the ELT tasks just developed, ensuring tasks run on an hourly cycle. Submit and publish the tasks so that GitHub event data can be synced hourly from GHArchive (with a one-hour lag) and cleaned and transformed.

Backfilling Full Data
For data backfill tasks in Singdata Lakehouse Studio, you can fully reuse the incremental tasks. Simply configure and execute the backfill task with the start and end dates for the full data range to backfill historical data.
Taking GHArchive data as an example, its website (http://www.gharchive.org/) has data starting from February 12, 2011. Configure the backfill task as shown below and run it to achieve full data sync. Backfill tasks can run concurrently with incremental data sync tasks, and there is no need to develop a new full sync task.

Task Operations
Singdata Lakehouse Studio also provides comprehensive operations interfaces, such as displaying upstream and downstream DAG relationships for tasks, running status, and performing operations like reruns.

Summary
This article discusses the problems and challenges of traditional development approaches in data projects, especially those closely tied to ML and AI, and how to implement a new ELT approach for GHArchive using Singdata Lakehouse -- enabling unified development, scheduling, and operations, significantly streamlining the product components in the solution, and helping to greatly improve efficiency and reduce management costs. Key takeaways include:
- Unified Data Task Development and Scheduling: Simplify development and operations environments; achieve consistent task version management covering Python, SQL, and ML/AI task development, as well as unified task scheduling orchestration and operations control.
- Multi-Data-Type Support: Efficient storage and access for common basic data types, complex data types, JSON, Vector, full-text inverted indexes, and more.
- Dynamic Table: Features declarative programming, transparent orchestration, incremental processing, easy switching, and observability.
- Application Case: Using GHArchive data to demonstrate data extraction, loading, cleaning and transformation, ad hoc data analysis, AI/ML enhanced analysis, incremental sync task scheduling, full data backfilling, and task operations.
