Skip to content
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
57ad9dc
WIP: Refactoring AST_RewriteStarProjections()
nafraf Jul 5, 2023
1137b34
collect_call_projections(): Remove yield_count validation
nafraf Jul 5, 2023
b6620f5
Reorganize shared code
nafraf Jul 5, 2023
ced298c
WIP: _rewrite_call_subquery_star_projections()
nafraf Jul 6, 2023
6cd3c3f
Test CALL{} using CREATE, MERGE, UNWIND, CALL
nafraf Jul 6, 2023
9d47264
replace_clause(): remove unused var scope_start
nafraf Jul 7, 2023
5906b06
Fix intermediate WITH * including new variable
nafraf Jul 7, 2023
fa6756d
Add pointer casting
nafraf Jul 7, 2023
ee1b813
Merge branch 'master' into rewrite_star_projection
nafraf Jul 7, 2023
2b9b226
Remove changes of PR #3139
nafraf Jul 10, 2023
f2e5b19
_Validate_RETURN_Clause(): Check RETURN * without vars in scope
nafraf Jul 11, 2023
4b82445
Merge branch 'master' into rewrite_star_projection
nafraf Jul 11, 2023
4b29940
Check if vars of RETURN * are part of outer scope
nafraf Jul 11, 2023
a86f7d5
Remove raxClone()
nafraf Jul 11, 2023
37f02b4
Add test CALL { ... RETURN *,var}
nafraf Jul 12, 2023
bd20572
Use vctx->ignore_identifiers in _Validate_RETURN_Clause
nafraf Jul 12, 2023
66aee9f
Add collect_non_star_projections()
nafraf Jul 12, 2023
7a3470c
Remove unneedded case from collect_return_projections()
nafraf Jul 12, 2023
63e8b06
Merge branch 'master' into rewrite_star_projection
nafraf Jul 17, 2023
70d09a9
Remove unneeded cast
nafraf Jul 17, 2023
ba88672
Fix query having WITH * after UNION
nafraf Jul 17, 2023
a622b67
Fix collect projection in _rewrite_call_subquery_star_projections()
nafraf Jul 18, 2023
acf9d3f
Add missing replace_clause in AST_RewriteStarProjections()
nafraf Jul 18, 2023
6382406
Remove unneeded casting
nafraf Jul 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add pointer casting
  • Loading branch information
nafraf committed Jul 7, 2023
commit fa6756d42bc0d0cc26cdb8b64b953cd00cd8d482
6 changes: 4 additions & 2 deletions src/ast/ast_rewrite_star_projections.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ static bool _rewrite_call_subquery_star_projections
if(last_is_union && t == CYPHER_AST_WITH) {
// importing `WITH` clause, import vars from wrapping clause
replace_clause(query, clause, i, clone_identifiers);
clause = cypher_ast_query_get_clause(query, i);
clause = (cypher_astnode_t *)
cypher_ast_query_get_clause(query, i);
} else {
// intermediate `WITH` or `RETURN` clause
if(t == CYPHER_AST_WITH) {
Expand All @@ -292,7 +293,8 @@ static bool _rewrite_call_subquery_star_projections
collect_return_projections(clause, local_identifiers);
}
replace_clause(query, clause, i, local_identifiers);
clause = cypher_ast_query_get_clause(query, i);
clause = (cypher_astnode_t *)
cypher_ast_query_get_clause(query, i);
}
rewritten = true;
} else {
Expand Down