Commit b46871e
authored
Convert to_tree from function to procedure (memgraph#3148)
- Change convert_to_tree function to convert_to_tree_proc procedure
- Update procedure signature to use mgp_result instead of
mgp_func_result
- Use correct procedure API: mgp::result_new_record() and
mgp::result_record_insert()
- Add mgp::ProcedureType::Read parameter to AddProcedure()
- Update all test files to use CALL convert.to_tree() YIELD tree syntax
- Remove old function registration and keep only procedure registration
This converts the to_tree functionality from a function that returns a
single value to a procedure that returns records, which is more
appropriate for structured data.1 parent ac8784f commit b46871e
5 files changed
Lines changed: 39 additions & 8 deletions
File tree
- query_modules
- tests/query_modules/to_tree_test
- test_complex
- test_default_config
- test_invalid_filter
- test_simple
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
443 | 474 | | |
444 | 475 | | |
445 | 476 | | |
446 | 477 | | |
447 | 478 | | |
448 | | - | |
449 | | - | |
| 479 | + | |
| 480 | + | |
450 | 481 | | |
451 | | - | |
| 482 | + | |
452 | 483 | | |
453 | 484 | | |
454 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments