We generate an empty schema with one group even if exprs is empty because we always need to scan edgeID and nbrNodeID which will need the state of empty data chunk.
| 62 | // We generate an empty schema with one group even if exprs is empty because we always need to |
| 63 | // scan edgeID and nbrNodeID which will need the state of empty data chunk. |
| 64 | static Schema getSchema(const expression_vector& exprs) { |
| 65 | auto schema = Schema(); |
| 66 | schema.createGroup(); |
| 67 | for (auto expr : exprs) { |
| 68 | schema.insertToGroupAndScope(expr, 0); |
| 69 | } |
| 70 | return schema; |
| 71 | } |
| 72 | |
| 73 | static ResultSet getResultSet(Schema* schema, MemoryManager* mm) { |
| 74 | auto descriptor = ResultSetDescriptor(schema); |
no test coverage detected