Closed TungstnBallon closed 4 months ago
It looks that you don't use the TsTableColumn
constructor somewhere. The Type is unexpectedly Object
in debug-log-vistor.ts:54
:
In table.ts:446
you use structuredClone
. This function creates a clone with the attributes only, i.e. the result is basically what you get if you copy a JSON object. That object is a plain JS object without any class information, that's why the type of the columns after cloning a table is just Object
and not TsTableColumn
(see screenshot above). The best approach is to create a custom clone
method in TsTableColumn
and PolarsTableColumn
.
Thanks, that worked
Steps to reproduce
main
branchnpm run example:testing
Description
Actual: The interpreter crashes when trying to print the table
Additional information
When running without trying to print the table, the interpreter still crashes
[CarsPipeline] Overview: Blocks (7 blocks with 1 pipes): -> CarsExtractor (HttpExtractor) -> CarsTextFileInterpreter (TextFileInterpreter) -> CarsCSVInterpreter (CSVInterpreter) -> NameHeaderWriter (CellWriter) -> CarsTableInterpreter (TableInterpreter) -> MyTableTransformer (TableTransformer) -> CarsLoader (SQLiteLoader)
Warning: run-commands command "node --enable-source-maps dist/apps/interpreter/main.js example/testing.jv" exited with non-zero status code