Research Article Open Access

Complex SQL-NoSQL Query Translation for Data Lake Management

Nurhadi1, Rabiah Abdul Kadir1 and Ely Salwana Mat Surin1
  • 1 Institute of IR4.0, University Kebangsaan Malaysia, Malaysia

Abstract

A data lake refers to an extremely large data resource or repository. Data lakes store large amounts of data and use advanced analytics to pair data from multiple sources with different types of structured, semi-structured, and unstructured information. NoSQL databases such as Mongodb, Redis, Neo4j, and Cassandra are nontabular and they store data differently rather than use relational tables. NoSQL databases come in many forms, mostly documents, key values, wide columns, and graphs based on their data model. NoSQL gives less complicated scalability and higher overall performance as compared with traditional relational databases. NoSQL databases can store different types of data, but they cannot fully support Automation, Consistency, Isolation, and endurance (ACID) features, i.e., trigger functions in multi-transaction management, because a NoSQL database uses a non-relational database system. Thus, an interpreter is necessary for SQL-to-NoSQL queries. We used ANTLR (ANother Tool for Language Recognition), which has five main stages: The input SQL query, the tokenizer, the parser, the parser tree, and lastly the generation of the query results in NoSQL. The tool gave users to write a flexible multi-pass language parser that is expected to solve problems in querying complex ACID functions and other problems in complex queries in NoSQL databases. In the measurement, analysis, and evaluation of the translation results through the comparison of each NoSQL criterion against a Relational Database Management System (MySQL), the scores obtained were as follows. The performance criterion achieved the highest score (98.40%) by the MongoDB database, followed by scalability (97.40%) and accuracy (97.00%). The criterion with the lowest score was complexity (91.65%).

Journal of Computer Science
Volume 18 No. 12, 2022, 1179-1188

DOI: https://doi.org/10.3844/jcssp.2022.1179.1188

Submitted On: 28 August 2022 Published On: 19 December 2022

How to Cite: Nurhadi, ., Kadir, R. A. & Surin, E. S. M. (2022). Complex SQL-NoSQL Query Translation for Data Lake Management. Journal of Computer Science, 18(12), 1179-1188. https://doi.org/10.3844/jcssp.2022.1179.1188

  • 4,097 Views
  • 1,432 Downloads
  • 0 Citations

Download

Keywords

  • Translation
  • SQL
  • NoSQL
  • Data Lake
  • ANTLR