-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interactive): Fix Bugs of Type Inference in
Collect(labels(n))
(#…
…4398) <!-- Thanks for your contribution! please review https://github.com/alibaba/GraphScope/blob/main/CONTRIBUTING.md before opening an issue. --> ## What do these changes do? <!-- Please give a short brief about these changes. --> ## Related issue number <!-- Are there any issues opened that will be resolved by merging this change? --> Fixes #4388
- Loading branch information
Showing
3 changed files
with
130 additions
and
12 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
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
106 changes: 106 additions & 0 deletions
106
interactive_engine/compiler/src/test/resources/proto/collect_labels.json
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,106 @@ | ||
{ | ||
"plan": [{ | ||
"opr": { | ||
"scan": { | ||
"alias": 0, | ||
"params": { | ||
"tables": [{ | ||
"id": 1 | ||
}], | ||
"sampleRatio": 1.0 | ||
} | ||
} | ||
}, | ||
"metaData": [{ | ||
"type": { | ||
"graphType": { | ||
"graphDataType": [{ | ||
"label": { | ||
"label": 1 | ||
}, | ||
"props": [{ | ||
"propId": { | ||
"name": "id" | ||
}, | ||
"type": "INT64" | ||
}, { | ||
"propId": { | ||
"name": "firstName" | ||
}, | ||
"type": "STRING" | ||
}, { | ||
"propId": { | ||
"name": "lastName" | ||
}, | ||
"type": "STRING" | ||
}, { | ||
"propId": { | ||
"name": "gender" | ||
}, | ||
"type": "STRING" | ||
}, { | ||
"propId": { | ||
"name": "birthday" | ||
}, | ||
"type": "INT64" | ||
}, { | ||
"propId": { | ||
"name": "creationDate" | ||
}, | ||
"type": "DATE32" | ||
}, { | ||
"propId": { | ||
"name": "locationIP" | ||
}, | ||
"type": "STRING" | ||
}, { | ||
"propId": { | ||
"name": "browserUsed" | ||
}, | ||
"type": "STRING" | ||
}] | ||
}] | ||
} | ||
} | ||
}] | ||
}, { | ||
"opr": { | ||
"groupBy": { | ||
"functions": [{ | ||
"vars": [{ | ||
"tag": { | ||
"id": 0 | ||
}, | ||
"property": { | ||
"label": { | ||
} | ||
}, | ||
"nodeType": { | ||
"dataType": "INT32" | ||
} | ||
}], | ||
"aggregate": "TO_LIST", | ||
"alias": 1 | ||
}] | ||
} | ||
}, | ||
"metaData": [{ | ||
"type": { | ||
"dataType": "INT32_ARRAY" | ||
}, | ||
"alias": 1 | ||
}] | ||
}, { | ||
"opr": { | ||
"sink": { | ||
"tags": [{ | ||
"tag": 1 | ||
}], | ||
"sinkTarget": { | ||
"sinkDefault": { | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
} |