Repository navigation
ORC-1376: [C++] Scaffolding of schema evolution - #1427
Conversation
|
Thanks @ffacs for contribution! I will take a look next week. |
wgtmac
left a comment
There was a problem hiding this comment.
This is looking good. I have left some minor comments.
As this is the 1st patch of a large feature. I expect there are more patches coming. Could you please open a separate JIRA for each followup work item?
Add schema evolution and check PPD security
|
I`ve uploaded a new patch, please take a look. @wgtmac @coderex2522 @stiga-huang |
wgtmac
left a comment
There was a problem hiding this comment.
It is better to add more commits instead of a forced push. This makes it harder to find what changes are made compared to previous commits.
Overall looks good to me.
| virtual std::vector<std::string> getAttributeKeys() const = 0; | ||
| virtual std::string getAttributeValue(const std::string& key) const = 0; | ||
| virtual std::string toString() const = 0; | ||
| virtual std::optional<const Type*> getTypeByColumnId(uint64_t colId) const = 0; |
There was a problem hiding this comment.
I didn’t notice that this is a public header. As Apache impala is still on c++14 and ‘optional’ is a c++17 feature, it will break impala. Could you revert this and add a comment for the possible nullptr of return? Sorry about that.
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Thank you for making a PR, @ffacs .
This PR seems to introduce a breaking change to SargsApplier::SargsApplier constructor. Could you provide a backward compatibility?
coderex2522
left a comment
There was a problem hiding this comment.
Thanks @ffacs! And I've left some formatting comments.
| #include "SchemaEvolution.hh" | ||
| #include "orc/Exceptions.hh" | ||
|
|
||
| #include <unordered_map> |
There was a problem hiding this comment.
These two header files are already included in the SchemaEvolution.hh. It is a redundant code.
|
|
||
| #include <unordered_map> | ||
| #include <unordered_set> | ||
| #include "orc/Type.hh" |
There was a problem hiding this comment.
It is recommended that this line ' #include "orc/Type.hh" ' be moved to precede line ' #include <unordered_map>'.
|
+1, LGTM. |
|
Thank you all! |
### What changes were proposed in this pull request? Add a Gitbub action to enforce license check of c++ source files. ### Why are the changes needed? #1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. ### How was this patch tested? Make sure the new action works as expected. Closes #1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add a Gitbub action to enforce license check of c++ source files. apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. Make sure the new action works as expected. Closes apache#1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add a Gitbub action to enforce license check of c++ source files. apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. Make sure the new action works as expected. Closes apache#1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add a Gitbub action to enforce license check of c++ source files. #1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. Make sure the new action works as expected. Closes #1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add a Gitbub action to enforce license check of c++ source files. apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. Make sure the new action works as expected. Closes apache#1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add a Gitbub action to enforce license check of c++ source files. apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. Make sure the new action works as expected. Closes apache#1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add a Gitbub action to enforce license check of c++ source files. #1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. Make sure the new action works as expected. Closes #1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
|
Is the JIRA ID correct? |
It seems that there isn't any JIRA for this subtask. |
### What changes were proposed in this pull request? This pr adds a class schema evolution which checks validity and PDD security of a type conversion. The convertions would be finished later. ### Why are the changes needed? To support schema evolution in c++ ### How was this patch tested? UT This closes apache#1427 Co-authored-by: wuyuanping <wuyuanping.wyp@alibaba-inc.com> Co-authored-by: ffacs <ffacs520@gmail.com>
### What changes were proposed in this pull request? Add a Gitbub action to enforce license check of c++ source files. ### Why are the changes needed? apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging. ### How was this patch tested? Make sure the new action works as expected. Closes apache#1442 from wgtmac/license. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Add schema evolution and check PPD security
What changes were proposed in this pull request?
This pr adds a class
schema evolutionwhich checks validity and PDD security of a type conversion. The convertions would be finished later.Why are the changes needed?
To support schema evolution in c++
How was this patch tested?
UT