Skip to content

Commit

Permalink
lookup with array test
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Dec 20, 2021
1 parent 6e35d18 commit 845aabb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/experimental/lookUpWithArray/externalMapInLine.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
do list("animals[]")
lookup("Banimal", "data/experimental/map/mapfile.tsv", "sep_char":"\t")
end

// lookup("animals[].*.Aanimal", "data/experimental/map/mapfile.tsv", "sep_char":"\t")
6 changes: 6 additions & 0 deletions data/experimental/lookUpWithArray/mapfile.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dog mammal
cat mammal
parrot bird
shark fish
dragon ficational animal
unicorn ficational animal
10 changes: 10 additions & 0 deletions data/experimental/lookUpWithArray/test1_externalMapInline.flux
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
infile = FLUX_DIR + "animals.json";

infile
| open-file
| as-records
| decode-json
| fix(FLUX_DIR + "externalMapInLine.fix")
| encode-json(prettyPrinting="true")
| print
;

0 comments on commit 845aabb

Please sign in to comment.