Streams refactoring

This commit is contained in:
Michael Schimmel
2026-01-25 01:44:36 +01:00
parent ca1d9b95f7
commit 4daa05efda
8 changed files with 188 additions and 724 deletions
+1 -4
View File
@@ -62,7 +62,6 @@ uses
Myc.Data.Decimal,
Myc.Data.Series,
Myc.Data.Stream,
Myc.Data.Stream.Pipes,
Myc.Ast.Types;
type
@@ -602,9 +601,7 @@ begin
// Compile the transformation function
lambdaFunc := Visit(N.Transformation).AsMethod();
// WARNING: If this is executing dynamically (without TypeChecker), StaticType is Unknown.
// Pipe creation REQUIRES the output definition.
// Fixed: Allow both stRecord and stRecordSeries (as TypeChecker correctly assigns stRecordSeries for Pipe nodes)
// Allow both stRecord and stRecordSeries (as TypeChecker correctly assigns stRecordSeries for Pipe nodes)
if (N.StaticType.Kind <> stRecordSeries) and (N.StaticType.Kind <> stRecord) then
raise EEvaluatorException.Create('Pipe requires Type Checking to determine output structure (RecordDefinition).');