-
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.
signature: pl.lit(any): pl.Expr This is incredibly useful, because now the polars operator evaluators don't have to deal with InternalValueRepresentation
- Loading branch information
1 parent
be6d767
commit e7dbc05
Showing
27 changed files
with
170 additions
and
344 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
pipeline CarsPipeline { | ||
|
||
CarsExtractor | ||
-> CarsTextFileInterpreter | ||
-> CarsCSVInterpreter | ||
-> NameHeaderWriter | ||
-> CarsTableInterpreter | ||
-> MyTableTransformer | ||
-> 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 | ||
]; | ||
} | ||
|
||
transform IdentityTransform { | ||
from mpg oftype decimal; | ||
from cyl oftype integer; | ||
to o oftype decimal; | ||
|
||
o: mpg + cyl; | ||
} | ||
|
||
block MyTableTransformer oftype TableTransformer { | ||
inputColumns: ['mpg', 'cyl']; | ||
outputColumn: 'f(mpg, cyl)'; | ||
|
||
use: IdentityTransform; | ||
} | ||
|
||
block CarsLoader oftype SQLiteLoader { | ||
table: "Cars"; | ||
file: "./cars.sqlite"; | ||
} | ||
} | ||
|
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
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
Oops, something went wrong.