akshay-sri123 / bistro

A general-purpose data analysis engine radically changing the way batch and stream data is processed

Home Page:http://conceptoriented.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  ____  _     _
 | __ )(_)___| |_ _ __ ___  ___________________________
 |  _ \| / __| __| '__/ _ \ 
 | |_) | \__ \ |_| | | (_) |  C O L U M N S  F I R S T
 |____/|_|___/\__|_|  \___/ ___________________________

Gitter chat License: MIT

About Bistro project

The goal of this project is to implement a novel general-purpose data modeling and data processing technology which radically differs from most of the existing approaches. Shortly, it can be viewed as a major alternative to set-orientation like SQL or MapReduce. The project consists of the following sub-projects:

  • Bistro Engine - a general-purpose data processing library - it is an alternative to MapReduce
  • Bistro Streams - a library for stream analytics (for IoT and edge computing) - it is an alternative to Kafka Streams
  • Examples - examples of how to use Bistro Engine and Bistro Streams

What is Bistro intended for?

The main general goal of Bistro is data processing. By data processing we mean deriving new data from existing data.

What kind of data Bistro can process?

Bistro assumes that data is represented as a number of sets of elements. Each element is a tuple which is a combination of column values. A value can be any (Java) object.

How Bistro processes data?

Tables and columns in Bistro may have definitions. A table definition specifies how elements of this set are produced (inferred or derived) from elements of other sets. A column definition specifies how the values of this column are computed from the values of other columns (in this or other tables). Table and column definitions in Bistro are analogous to queries in conventional DBMS.

How Bistro is positioned among other data processing technologies?

We can distinguish between two big approaches:

  • set-oriented or set theoretic approaches rely on sets for representing data and set operations for manipulating data (inference)
  • column-oriented or functional approaches rely on functions for representing data and operations with functions for manipulating data (inference)

The following table shows some typical technologies and how they are positioned along the two dimensions:

Column-oriented Set-oriented
Data models (logical) Functional, ODM, Concept-oriented model Relational model
Data stores (physical) Vertica, SAP HANA etc. Classical DBMSs
Data processing (batch) Bistro Engine MapReduce, SQL
Stream processing Bistro Streams Kafka Streams, Spark Streaming, Flink etc.

Notes:

  • This table is a very rough representation because many technologies have significant overlaps
  • Bistro and the concept-oriented model do support set operations. They simply shift priority from set operations to column operations

Does Bistro have queries?

No, Bistro does not provide any query language. Instead, Bistro uses definitions which are evaluated against the data as opposed to executing a query. These definitions (in contrast to queries) are integral part of the database. A table or column with a definition is treated equally to all other tables and columns. It is similar to defining views in a database which can be updated if some data changes.

Bistro has a sub-project called bistro-formula which is intended for supporting expression languages instead of native Java code. Yet, such expressions (similar to Excel formulas) will be translated into native code in column definitions.

What are unique features of Bistro?

Bistro relies on column definitions and much less uses table definitions. In contrast, most traditional approaches (including SQL and, map-reduce) use set operations for data transformations.

What are the benefits of column-orientation (at logical level)?

Describing data processing logic using column operations can be much more natural and simpler in many scenarios (for the same reason why spreadsheets are). In particular, Bistro does not use joins and group-by which are known to be difficult to understand and use but which are very hard to get rid of. Logical column operations are also naturally mapped to physical column operations.

What is the formal basis of Bistro?

Bistro relies on the concept-oriented model (COM) [2] where the main unit of representation and processing is a function as opposed to using only sets in the relational and other set-oriented models. Data in this model is stored in functions (mappings between sets) and it provides operations for computing new functions from existing functions. COM supports set operations but they have weaker role in comparison to set-oriented models.

What are other implementation of this approach to data processing?

The same formal basis has been also used in these projects:

Who has been developing Bistro?

Bistro and the underlying concept-oriented model of data has been developed by Alexandr Savinov: http://conceptoriented.org

License

See LICENSE file in the project directory: https://github.com/asavinov/bistro/blob/master/LICENSE

About

A general-purpose data analysis engine radically changing the way batch and stream data is processed

http://conceptoriented.org

License:MIT License


Languages

Language:Java 99.3%Language:ANTLR 0.7%