Skip to content

Commit 08e7487

Browse files
committed
Debugging
2 parents 4a665ca + 32fdd6c commit 08e7487

File tree

7 files changed

+11994
-623
lines changed

7 files changed

+11994
-623
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ Testing SQL compabillity for [AlaSQL](https://github.com/agershun/alasql)
66
How?
77
----
88

9-
Go get markdown summery run the npm test;
9+
Go get markdown summery run npm test (will include starting node with garbagecollection set to true):
1010

1111
npm test
1212

1313
Result will output to results.md
1414

15-
To get more details execute `run_raw.js` in the sqllogic folder. As the output is very big its suggested to direct output to a file. As the testfiles are quite big the garbagecollection can be initiated between the run of each file. To initiate this run node with the --expose-gc flag
15+
16+
17+
**To get more details** execute `run_raw.js` in the sqllogic folder. As the output is very big its suggested to direct output to a file and let the garbagecollection be initiated between the run of each file. To execute `run_raw.js` run node with the --expose-gc flag:
1618

1719
cd sqllogic
1820
node --expose-gc run_raw > results.log
@@ -46,28 +48,31 @@ The goal (for now) is not to pass all the tests, but to help us describe (in the
4648

4749
The format of the tests are desribed here: http://www.sqlite.org/sqllogictest/doc/trunk/about.wiki
4850

51+
Supported
52+
---------
53+
54+
- Verify that the parser parses all the tests
55+
56+
- Floating point values are rendered as if by printf("%.3f").
57+
58+
- NULL values are rendered as "NULL". Empty strings are rendered as "(empty)". Within non-empty strings, all control characters and unprintable characters are rendered as "@".
59+
60+
4961

5062

5163
ToDo
5264
----
5365

54-
- Verify that the parser parses all the tests (ongoing development in the sqllogivtestparserV2.js)
5566

56-
- Implement verification of returned valued with sortorder set
5767

5868
- Change the compabillity flags in alasql accordng to whats mimicked
5969

6070
- implement:
6171
> The <label> argument is also optional. If included, sqllogictest stores a hash of the results of this query under the given label. If the label is reused, then sqllogictest verifies that the results are the same. This can be used to verify that two or more queries in the same test script that are logically equivalent always generate the same output.
6272
63-
- Implement:
64-
> Floating point values are rendered as if by printf("%.3f").
6573

66-
- Implement:
67-
> NULL values are rendered as "NULL". Empty strings are rendered as "(empty)". Within non-empty strings, all control characters and unprintable characters are rendered as "@".
6874

69-
70-
- Implement
75+
- Implement verification of returned valued with sortorder set
7176
> The <sort-mode> argument is optional. If included, it must be one of "nosort", "rowsort", or "valuesort". The default is "nosort". In nosort mode, the results appear in exactly the order in which they were received from the database engine. The nosort mode should only be used on queries that have an ORDER BY clause or which only have a single row of result, since otherwise the order of results is undefined and might vary from one database engine to another. The "rowsort" mode gathers all output from the database engine then sorts it by rows on the client side. Sort comparisons use strcmp() on the rendered ASCII text representation of the values. Hence, "9" sorts after "10", not before. The "valuesort" mode works like rowsort except that it does not honor row groupings. Each individual result value is sorted on its own.
7277
7378
**Not ToDo**

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alasql-logictest",
3-
"version": "0.0.1",
3+
"version": "0.0.3",
44
"description": "sqllogictest of AlaSQL",
55
"main": "sqllogic/run_raw.js",
66
"scripts": {
@@ -12,7 +12,8 @@
1212
},
1313
"keywords": [
1414
"sql",
15-
"test"
15+
"test",
16+
"AlaSQL"
1617
],
1718
"author": "Mathias Rangel Wulff",
1819
"license": "MIT",

0 commit comments

Comments
 (0)