Skip to content

Commit

Permalink
support decode schemaless
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Dec 14, 2023
1 parent 9824671 commit 6c5e4ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/topo/planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,7 @@ func transformSourceNode(t *DataSourcePlan, mockSourcesProp map[string]map[strin
return nil, err
}
}
schema := t.streamFields
if t.isSchemaless {
schema = nil
}
srcNode := node.NewSourceNode(string(t.name), t.streamStmt.StreamType, pp, t.streamStmt.Options, options.SendError, schema)
srcNode := node.NewSourceNode(string(t.name), t.streamStmt.StreamType, pp, t.streamStmt.Options, options.SendError, t.streamFields)
if isMock {
srcNode.SetProps(mockSourceConf)
}
Expand Down

0 comments on commit 6c5e4ec

Please sign in to comment.