-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ghislain Fourny
committed
Aug 2, 2024
1 parent
ca9bc04
commit c3cb597
Showing
28 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...st/resources/test_files/runtime-delta-updates/check-delta-transform/TransformWithDelta.jq
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[4,1]; Output="{ "bool" : true, "bool_array" : [ true ], "float" : 4.2, "float_array" : [ 4.2 ], "int64" : 42, "int64_array" : [ 42 ], "object" : { "bool" : true, "float" : 4.2, "int64" : 42, "object" : { "bool" : true }, "string" : "hello" }, "object_array" : [ { "bool" : true, "float" : 4.2, "int64" : 42, "object" : { "bool" : true }, "string" : "hello" } ], "string_array" : [ "hello" ], "string" : "null" }" :) | ||
copy $je := delta-file("./tempDeltaTable") | ||
modify replace value of $je.string with "null" | ||
modify replace value of json $je.string with "null" | ||
return $je |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ return | |
for $val in $arr[] | ||
count $c2 | ||
where $c1 eq $c2 | ||
return delete $arr[[$c2]] | ||
return delete json $arr[[$c2]] |
2 changes: 1 addition & 1 deletion
2
...ces/test_files/runtime-delta-updates/multirow-updates/MultirowDeltaNestedObjectInsert1.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[2,13]; Output="" :) | ||
for $data in delta-file("./tempDeltaTable") | ||
return insert { "nest" : { "key1" : "value1" } } into $data | ||
return insert json { "nest" : { "key1" : "value1" } } into $data |
2 changes: 1 addition & 1 deletion
2
...ces/test_files/runtime-delta-updates/multirow-updates/MultirowDeltaNestedObjectInsert2.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[2,15]; Output="" :) | ||
for $data in delta-file("./tempDeltaTable") | ||
return insert "key2" : "value2" into $data.nest | ||
return insert json "key2" : "value2" into $data.nest |
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
2 changes: 1 addition & 1 deletion
2
...resources/test_files/runtime-delta-updates/multirow-updates/MultirowDeltaObjectReplace.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[2,1]; Output="" :) | ||
for $data in delta-file("./tempDeltaTable") | ||
return replace value of $data.foo with -1 | ||
return replace value of json $data.foo with -1 |
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
2 changes: 1 addition & 1 deletion
2
src/test/resources/test_files/runtime-delta-updates/nested-updates/NestedDeltaArrayDelete.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[1,13]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return delete $data.object.object.object_array[[2]] | ||
return delete json $data.object.object.object_array[[2]] |
2 changes: 1 addition & 1 deletion
2
src/test/resources/test_files/runtime-delta-updates/nested-updates/NestedDeltaArrayInsert.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[1,9]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return insert {"string" : "NEW SUCCESS" } into $data.object.object.object_array at position 2 | ||
return insert json {"string" : "NEW SUCCESS" } into $data.object.object.object_array at position 2 |
2 changes: 1 addition & 1 deletion
2
...test/resources/test_files/runtime-delta-updates/nested-updates/NestedDeltaArrayReplace.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[1,11]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return replace value of $data.object.object.object_array[[2]] with { "string" : "NEW DOUBLE SUCCESS" } | ||
return replace value of json $data.object.object.object_array[[2]] with { "string" : "NEW DOUBLE SUCCESS" } |
2 changes: 1 addition & 1 deletion
2
...test/resources/test_files/runtime-delta-updates/nested-updates/NestedDeltaObjectDelete.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[1,7]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return delete $data.object.object.object_array[[1]].success | ||
return delete json $data.object.object.object_array[[1]].success |
2 changes: 1 addition & 1 deletion
2
...test/resources/test_files/runtime-delta-updates/nested-updates/NestedDeltaObjectInsert.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[1,1]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return insert "new_ins" : "SUCCESS" into $data.object.object.object_array[[1]] | ||
return insert json "new_ins" : "SUCCESS" into $data.object.object.object_array[[1]] |
2 changes: 1 addition & 1 deletion
2
...est/resources/test_files/runtime-delta-updates/nested-updates/NestedDeltaObjectReplace.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[1,3]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return replace value of $data.object.object.object_array[[1]].new_ins with "DOUBLE SUCCESS" | ||
return replace value of json $data.object.object.object_array[[1]].new_ins with "DOUBLE SUCCESS" |
2 changes: 1 addition & 1 deletion
2
src/test/resources/test_files/runtime-delta-updates/simple-updates/SimpleDeltaArrayDelete.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[0,13]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return delete $data.string_array[[2]] | ||
return delete json $data.string_array[[2]] |
2 changes: 1 addition & 1 deletion
2
src/test/resources/test_files/runtime-delta-updates/simple-updates/SimpleDeltaArrayInsert.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[0,9]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return insert "SUCCESS" into $data.string_array at position 2 | ||
return insert json "SUCCESS" into $data.string_array at position 2 |
2 changes: 1 addition & 1 deletion
2
...test/resources/test_files/runtime-delta-updates/simple-updates/SimpleDeltaArrayReplace.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[0,11]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return replace value of $data.string_array[[2]] with "DOUBLE SUCCESS" | ||
return replace value of json $data.string_array[[2]] with "DOUBLE SUCCESS" |
2 changes: 1 addition & 1 deletion
2
...test/resources/test_files/runtime-delta-updates/simple-updates/SimpleDeltaObjectDelete.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[0,1]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return delete $data.bool | ||
return delete json $data.bool |
2 changes: 1 addition & 1 deletion
2
...test/resources/test_files/runtime-delta-updates/simple-updates/SimpleDeltaObjectInsert.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[0,3]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return insert "new_ins" : "SUCCESS" into $data | ||
return insert json "new_ins" : "SUCCESS" into $data |
2 changes: 1 addition & 1 deletion
2
...est/resources/test_files/runtime-delta-updates/simple-updates/SimpleDeltaObjectReplace.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[0,5]; Output="" :) | ||
let $data := delta-file("./tempDeltaTable") | ||
return replace value of $data.new_ins with "DOUBLE SUCCESS" | ||
return replace value of json $data.new_ins with "DOUBLE SUCCESS" |
2 changes: 1 addition & 1 deletion
2
src/test/resources/test_files/runtime-delta-updates/xQuery-update-R/RQ1.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[3,1]; Output="" :) | ||
let $users := delta-file("./R").users | ||
return append {"userID" : "U07", "name" : "Annabel Lee"} into $users | ||
return append json {"userID" : "U07", "name" : "Annabel Lee"} into $users |
2 changes: 1 addition & 1 deletion
2
src/test/resources/test_files/runtime-delta-updates/xQuery-update-R/RQ2.jq
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(:JIQS: ShouldRun; UpdateDim=[3,3]; Output="" :) | ||
let $bids := delta-file("./R").bids | ||
return append {"userID" : "U07", "itemNO" : 1001, "bid" : 60, "bid_date" : "1999-02-01"} into $bids | ||
return append json {"userID" : "U07", "itemNO" : 1001, "bid" : 60, "bid_date" : "1999-02-01"} into $bids |
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