Introducing Schema Inference as a Scalable SQL Function [Extended Version]
Abstract
This paper introduces a novel approach to schema inference as an on-demand function integrated directly within a DBMS, targeting NoSQL databases where schema flexibility can create challenges. Unlike previous methods relying on external frameworks like Apache Spark, our solution enables schema inference as a SQL function, allowing users to infer schemas natively within the DBMS. Implemented in Apache AsterixDB, it performs schema discovery in two phases, local inference and global schema merging, leveraging internal resources for improved performance. Experiments with real world datasets show up to a two orders of magnitude performance boost over external methods, enhancing usability and scalability.
- Publication:
-
arXiv e-prints
- Pub Date:
- November 2024
- DOI:
- 10.48550/arXiv.2411.13278
- arXiv:
- arXiv:2411.13278
- Bibcode:
- 2024arXiv241113278D
- Keywords:
-
- Computer Science - Databases
- E-Print:
- Extended version of EDBT 2025 submission