You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,15 @@ Testing SQL compabillity for [AlaSQL](https://github.com/agershun/alasql)
6
6
How?
7
7
----
8
8
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):
10
10
11
11
npm test
12
12
13
13
Result will output to results.md
14
14
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:
16
18
17
19
cd sqllogic
18
20
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
46
48
47
49
The format of the tests are desribed here: http://www.sqlite.org/sqllogictest/doc/trunk/about.wiki
48
50
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
+
49
61
50
62
51
63
ToDo
52
64
----
53
65
54
-
- Verify that the parser parses all the tests (ongoing development in the sqllogivtestparserV2.js)
55
66
56
-
- Implement verification of returned valued with sortorder set
57
67
58
68
- Change the compabillity flags in alasql accordng to whats mimicked
59
69
60
70
- implement:
61
71
> 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.
62
72
63
-
- Implement:
64
-
> Floating point values are rendered as if by printf("%.3f").
65
73
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 "@".
68
74
69
-
70
-
- Implement
75
+
- Implement verification of returned valued with sortorder set
71
76
> 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.
0 commit comments