-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from keboola/adamvyborny-CM-573-fix-writing-bo…
…ol-values Fix writing bool values
Showing
15 changed files
with
100,122 additions
and
60 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,20 @@ | ||
[ | ||
{ | ||
"_id": { | ||
"$oid": "5716054bee6e764c94fa7ddd" | ||
}, | ||
"bool": true | ||
}, | ||
{ | ||
"_id": { | ||
"$oid": "5716054bee6e764c94fa8181" | ||
}, | ||
"bool": false | ||
}, | ||
{ | ||
"_id": { | ||
"$oid": "5716054bee6e764c94fa8213" | ||
}, | ||
"bool": null | ||
} | ||
] |
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 @@ | ||
0 |
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 @@ | ||
Connected to mongodb://mongodb:27017/test | ||
Exporting "export-all" | ||
Done "export-all", parsed 3 records in total |
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions
4
tests/functional/export-bool-values/expected/data/out/tables/export-all.csv
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,4 @@ | ||
"id","bool" | ||
"5716054bee6e764c94fa7ddd","1" | ||
"5716054bee6e764c94fa8181","0" | ||
"5716054bee6e764c94fa8213","" |
1 change: 1 addition & 0 deletions
1
tests/functional/export-bool-values/expected/data/out/tables/export-all.csv.manifest
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 @@ | ||
{"primary_key":null,"incremental":false} |
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,10 @@ | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
use MongoExtractor\FunctionalTests\DatadirTest; | ||
use MongoExtractor\Tests\Traits\ImportDatasetTrait; | ||
|
||
return static function (DatadirTest $test): void { | ||
(new class { use ImportDatasetTrait; })::importDatatasetNoAuthDb('restaurants', 'bool.json'); | ||
}; |
22 changes: 22 additions & 0 deletions
22
tests/functional/export-bool-values/source/data/config.json
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,22 @@ | ||
{ | ||
"parameters": { | ||
"db": { | ||
"host": "mongodb", | ||
"port": 27017, | ||
"database": "test" | ||
}, | ||
"collection": "restaurants", | ||
"tableName": "export-all", | ||
"mapping": { | ||
"_id.$oid": { | ||
"type": "column", | ||
"mapping": { | ||
"destination": "id" | ||
} | ||
}, | ||
"bool": "bool" | ||
}, | ||
"mode": "mapping", | ||
"sort": "{_id: 1}" | ||
} | ||
} |
100,001 changes: 100,001 additions & 0 deletions
100,001
tests/functional/run-action-big-data/expected/data/out/tables/big-data.csv
Large diffs are not rendered by default.
Oops, something went wrong.