-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add asggregate output field mapping support
features: * updated the symbol table so that multiple symbols can share the same location * the root relation now contains both a relation symbol and a name structure symbol * moved commonly string search functions into a separate file * added EMIT * added aliases * added join types fixes: * fixed root names sort order
- Loading branch information
1 parent
f7a45a6
commit d2e0648
Showing
27 changed files
with
1,513 additions
and
282 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
#include "StringManipulation.h" | ||
|
||
namespace io::substrait::textplan { | ||
|
||
// Yields true if the string 'haystack' starts with the string 'needle'. | ||
bool startsWith(std::string_view haystack, std::string_view needle) { | ||
return haystack.size() > needle.size() && | ||
haystack.substr(0, needle.size()) == needle; | ||
} | ||
|
||
// Returns true if the string 'haystack' ends with the string 'needle'. | ||
bool endsWith(std::string_view haystack, std::string_view needle) { | ||
return haystack.size() > needle.size() && | ||
haystack.substr(haystack.size() - needle.size(), needle.size()) == needle; | ||
} | ||
|
||
} // namespace io::substrait::textplan |
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,15 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
#pragma once | ||
|
||
#include <string_view> | ||
|
||
namespace io::substrait::textplan { | ||
|
||
// Yields true if the string 'haystack' starts with the string 'needle'. | ||
bool startsWith(std::string_view haystack, std::string_view needle); | ||
|
||
// Returns true if the string 'haystack' ends with the string 'needle'. | ||
bool endsWith(std::string_view haystack, std::string_view needle); | ||
|
||
} // namespace io::substrait::textplan |
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
Oops, something went wrong.