-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add set rel property planning (#1136)
- Loading branch information
1 parent
059ec91
commit f73bb9d
Showing
28 changed files
with
493 additions
and
220 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include "binder/query/updating_clause/bound_set_clause.h" | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
expression_vector BoundSetClause::getPropertiesToRead() const { | ||
expression_vector result; | ||
for (auto& setNodeProperty : setNodeProperties) { | ||
for (auto& property : setNodeProperty->getSetItem().second->getSubPropertyExpressions()) { | ||
result.push_back(property); | ||
} | ||
} | ||
for (auto& setRelProperty : setRelProperties) { | ||
for (auto& property : setRelProperty->getSetItem().second->getSubPropertyExpressions()) { | ||
result.push_back(property); | ||
} | ||
} | ||
return result; | ||
} | ||
|
||
unique_ptr<BoundUpdatingClause> BoundSetClause::copy() { | ||
auto result = make_unique<BoundSetClause>(); | ||
for (auto& setNodeProperty : setNodeProperties) { | ||
result->addSetNodeProperty(setNodeProperty->copy()); | ||
} | ||
for (auto& setRelProperty : setRelProperties) { | ||
result->addSetRelProperty(setRelProperty->copy()); | ||
} | ||
return result; | ||
} | ||
|
||
} // namespace binder | ||
} // namespace kuzu |
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
71 changes: 52 additions & 19 deletions
71
src/include/binder/query/updating_clause/bound_set_clause.h
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
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
25 changes: 15 additions & 10 deletions
25
src/include/planner/logical_plan/logical_operator/logical_create.h
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
Oops, something went wrong.