AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
http://alasql.org
MIT License
7.02k stars 655 forks source link

SQLLOGICTEST First results #187

Open agershun opened 9 years ago

agershun commented 9 years ago

@mathiasrw I modified slightly the test procedure, found the source of the 'frozen' bug (from select4.test) and select subset of sqllogictest files to be the standard for future development.

So, May 15, 2016. version 0.1.16

I will run this test for all new versions and publish the progress.

agershun commented 9 years ago

For future tests I will use Postgres and SQLite versions.

agershun commented 9 years ago

I changed a SLT parser a little bit. Now I want to focus only on the first file select1.test.

Current results are (May 17,2015 8:07)

PS. 84% is not so bad :+1:

agershun commented 9 years ago

Current state (May 17, 2015 @ 11:45) - KPI1 = 100% (select1.js passed)!!!

It is a time to start with select2.test - KPI2 tests - 1031 parsed ok - 1031 (100%) run ok - 105 (10%) time - 5.9s

agershun commented 9 years ago

First results for all files:

Test log

Date: May 17, 2015 @ 17-40 version 0.1.6

This file contains a log of tests runned on the SQLLOGICTEST package.

KPI1 (select1.test) - queries

KPI2 (select2.test) - NULLs

KPI3 (select3.test) - nested queries and exists

KPI4 (select4.test) - cross-joins

KPI5 (select5.test) - cross-joins

OTHER TESTS (tests, parsed, ok, time)

agershun commented 9 years ago

Almost passed for 1,2, and 3

KPI1 (select1.test) - queries

KPI2 (select2.test) - NULLs

KPI3 (select3.test) - nested queries and exists

agershun commented 9 years ago

Overall results for May 19, 2015 15:45

Result for all test files without select4.test and select5.test in total

mathiasrw commented 9 years ago

Im so glad the test have been pushing you and the quality further. I have been a bit offline - im back on track :)

agershun commented 9 years ago

:+1: AlaSQL definitely needs you! Especially SQLLOGIC and NIST SQL test part.

mathiasrw commented 9 years ago

Good to hear that all the work is not done yet ;-)

What is NIST ?

agershun commented 9 years ago

NIST - American National Institute for Standardization (http://www.nist.gov/)

They have SQL Test Suite. I took some sql files from this suite and prepare interpreter. Al these files located here:

https://github.com/agershun/alasql/tree/master/test-sql/nisttest

mathiasrw commented 9 years ago

nice - you already looked into converting it.

Is it working? what is missing? What do you need help with?

agershun commented 9 years ago

A little bit later, I just test all these files in general (unfortunately AlaSQL can not pass select4 and select5), but for other files we can understand what was the reason of errors. Give me a couple days, I will prepare a plan

mathiasrw commented 8 years ago

I have updated https://github.com/agershun/alasql/blob/develop/TESTLOG.md with a full test run.

The overall quality is growing!

Total script time: 21219236ms (5.9 hours)