forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand push_back for arrayWriter support to generics and strings. (fa…
…cebookincubator#8334) Summary: Pull Request resolved: facebookincubator#8334 This simplify functions in two ways: - one common pattern in functions is ``` if (inputArray[i].has_value()) { auto& newItem = out.add_item(); newItem.copy_from(inputArray[i].value()); } else { out.add_null(); } ```` now can be done in one line out.push_back(inputArray[i]);. - since primitive and generic with this have same interface many duplicate of functions body wont be needed. Reviewed By: amitkdutta Differential Revision: D52672124 fbshipit-source-id: 1397461b59a82d7aec99d762e6f1c955191df55a
- Loading branch information
1 parent
912897f
commit 5e38168
Showing
5 changed files
with
66 additions
and
89 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
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