|
@@ -498,6 +498,13 @@ func parseSource(nodeName string, gn *api.GraphNode, rule *api.Rule, store kv.Ke
|
|
|
return nil, ILLEGAL, "", err
|
|
|
}
|
|
|
sourceOption.TYPE = gn.NodeType
|
|
|
+ if sourceOption.SCHEMAID == "" && gn.Props["schemaName"] != nil && gn.Props["schemaMessage"] != nil {
|
|
|
+ schemaName, ok1 := gn.Props["schemaName"].(string)
|
|
|
+ schemaMessage, ok2 := gn.Props["schemaMessage"].(string)
|
|
|
+ if ok1 && ok2 {
|
|
|
+ sourceOption.SCHEMAID = schemaName + "." + schemaMessage
|
|
|
+ }
|
|
|
+ }
|
|
|
switch sourceMeta.SourceType {
|
|
|
case "stream":
|
|
|
pp, err := operator.NewPreprocessor(true, nil, true, nil, rule.Options.IsEventTime, sourceOption.TIMESTAMP, sourceOption.TIMESTAMP_FORMAT, strings.EqualFold(sourceOption.FORMAT, message.FormatBinary), sourceOption.STRICT_VALIDATION)
|