-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Levko Kravets <[email protected]>
- Loading branch information
1 parent
05af910
commit 077913a
Showing
23 changed files
with
1,155 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
arrowEnabled: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
This directory contains fixtures for testing different data types support. | ||
|
||
SQL files contain table structure and sample data, other files contain raw | ||
responses for different combination of options (with or without Arrow support enabled, | ||
with or without Arrow native types). In all cases, data should be decoded in | ||
exactly the same way. | ||
|
||
Known issues: | ||
|
||
- with Arrow disabled _or_ with Arrow native types disabled: | ||
- date values are not properly serialized in nested structures, so complex types cannot be JSON-decoded; | ||
therefore this case is not represented in this test set | ||
- any non-string type used as map key is not properly serialized and cannot be JSON-decoded; | ||
therefore this case is not represented in this test set |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const Int64 = require('node-int64'); | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const thriftSchema = require('../thrift_schema'); | ||
const arrowSchema = fs.readFileSync(path.join(__dirname, 'schema.arrow')); | ||
const data = fs.readFileSync(path.join(__dirname, 'data.arrow')); | ||
const expected = require('../expected'); | ||
|
||
exports.schema = thriftSchema; | ||
|
||
exports.arrowSchema = arrowSchema; | ||
|
||
exports.rowSets = [ | ||
{ | ||
startRowOffset: new Int64(Buffer.from([0, 0, 0, 0, 0, 0, 0, 0]), 0), | ||
rows: [], | ||
arrowBatches: [ | ||
{ | ||
batch: data, | ||
rowCount: new Int64(Buffer.from([0, 0, 0, 0, 0, 0, 0, 1]), 0), | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
exports.expected = expected; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const Int64 = require('node-int64'); | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const thriftSchema = require('../thrift_schema'); | ||
const arrowSchema = fs.readFileSync(path.join(__dirname, 'schema.arrow')); | ||
const data = fs.readFileSync(path.join(__dirname, 'data.arrow')); | ||
const expected = require('../expected'); | ||
|
||
exports.schema = thriftSchema; | ||
|
||
exports.arrowSchema = arrowSchema; | ||
|
||
exports.rowSets = [ | ||
{ | ||
startRowOffset: new Int64(Buffer.from([0, 0, 0, 0, 0, 0, 0, 0]), 0), | ||
rows: [], | ||
arrowBatches: [ | ||
{ | ||
batch: data, | ||
rowCount: new Int64(Buffer.from([0, 0, 0, 0, 0, 0, 0, 1]), 0), | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
exports.expected = expected; |
Binary file not shown.
Oops, something went wrong.