Polystore Mathematics of Relational Algebra

12/03/2017
by   Hayden Jananthan, et al.
0

Financial transactions, internet search, and data analysis are all placing increasing demands on databases. SQL, NoSQL, and NewSQL databases have been developed to meet these demands and each offers unique benefits. SQL, NoSQL, and NewSQL databases also rely on different underlying mathematical models. Polystores seek to provide a mechanism to allow applications to transparently achieve the benefits of diverse databases while insulating applications from the details of these databases. Integrating the underlying mathematics of these diverse databases can be an important enabler for polystores as it enables effective reasoning across different databases. Associative arrays provide a common approach for the mathematics of polystores by encompassing the mathematics found in different databases: sets (SQL), graphs (NoSQL), and matrices (NewSQL). Prior work presented the SQL relational model in terms of associative arrays and identified key mathematical properties that are preserved within SQL. This work provides the rigorous mathematical definitions, lemmas, and theorems underlying these properties. Specifically, SQL Relational Algebra deals primarily with relations - multisets of tuples - and operations on and between these relations. These relations can be modeled as associative arrays by treating tuples as non-zero rows in an array. Operations in relational algebra are built as compositions of standard operations on associative arrays which mirror their matrix counterparts. These constructions provide insight into how relational algebra can be handled via array operations. As an example application, the composition of two projection operations is shown to also be a projection, and the projection of a union is shown to be equal to the union of the projections.

READ FULL TEXT
research
01/18/2020

AI Data Wrangling with Associative Arrays

The AI revolution is data driven. AI "data wrangling" is the process by ...
research
02/22/2022

Relational Algebra and Calculus with SQL Null Values

The logic of nulls in databases has been subject of investigation since ...
research
03/28/2021

Mathematics of Digital Hyperspace

Social media, e-commerce, streaming video, e-mail, cloud documents, web ...
research
04/11/2020

In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQL

In-database machine learning has been very popular, almost being a clich...
research
10/30/2017

The equational theory of the natural join and inner union is decidable

The natural join and the inner union operations combine relations of a d...
research
01/22/2021

Towards Expectation-Maximization by SQL in RDBMS

Integrating machine learning techniques into RDBMSs is an important task...
research
02/18/2021

Knowledge Hypergraph Embedding Meets Relational Algebra

Embedding-based methods for reasoning in knowledge hypergraphs learn a r...

Please sign up or login with your details

Forgot password? Click here to reset