-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tests use handwritten falsy Jayvee model
- Loading branch information
Showing
2 changed files
with
59 additions
and
26 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,50 @@ | ||
pipeline CarsPipeline { | ||
// Try using a CoolCarsExtractor although we only have normal cars. | ||
// This fill result in an error during parsing. | ||
CoolCarsExtractor -> CarsTextFileInterpreter; | ||
|
||
CarsTextFileInterpreter | ||
-> CarsCSVInterpreter | ||
-> NameHeaderWriter | ||
-> CarsTableInterpreter | ||
-> CarsLoader; | ||
|
||
block CarsExtractor oftype HttpExtractor { | ||
url: "https://gist.githubusercontent.com/noamross/e5d3e859aa0c794be10b/raw/b999fb4425b54c63cab088c0ce2c0d6ce961a563/cars.csv"; | ||
} | ||
|
||
block CarsTextFileInterpreter oftype TextFileInterpreter { } | ||
|
||
block CarsCSVInterpreter oftype CSVInterpreter { | ||
enclosing: '"'; | ||
} | ||
|
||
block NameHeaderWriter oftype CellWriter { | ||
at: cell A1; | ||
write: ["name"]; | ||
} | ||
|
||
block CarsTableInterpreter oftype TableInterpreter { | ||
header: true; | ||
columns: [ | ||
"name" oftype text, | ||
"mpg" oftype decimal, | ||
"cyl" oftype integer, | ||
"disp" oftype decimal, | ||
"hp" oftype integer, | ||
"drat" oftype decimal, | ||
"wt" oftype decimal, | ||
"qsec" oftype decimal, | ||
"vs" oftype integer, | ||
"am" oftype integer, | ||
"gear" oftype integer, | ||
"carb" oftype integer | ||
]; | ||
} | ||
|
||
block CarsLoader oftype SQLiteLoader { | ||
table: "Cars"; | ||
file: "./cars.sqlite"; | ||
} | ||
|
||
} |