This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
[POAE7-2544] String LOWER/UPPER op support for Arrow format #147
Merged
+1,878
−10
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5ff6619
enabled legacy string LOWER funcs
fe35e20
added more LOWER test
678766f
added UPPER & improved json file names
4e3010a
updated stringop uts
99ecd1f
moved tests
7441656
fixed typo in test case
4e76163
fixed lint & format
bbd6e68
added const ref to string param
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"extensionUris": [ | ||
{ | ||
"extensionUriAnchor": 1, | ||
"uri": "/functions_string.yaml" | ||
} | ||
], | ||
"extensions": [ | ||
{ | ||
"extensionFunction": { | ||
"extensionUriReference": 1, | ||
"functionAnchor": 0, | ||
"name": "lower:opt_vchar" | ||
} | ||
} | ||
], | ||
"relations": [ | ||
{ | ||
"root": { | ||
"input": { | ||
"project": { | ||
"common": { | ||
"emit": { | ||
"outputMapping": [ | ||
2, | ||
3 | ||
] | ||
} | ||
}, | ||
"input": { | ||
"read": { | ||
"common": { | ||
"direct": {} | ||
}, | ||
"baseSchema": { | ||
"names": [ | ||
"COL_1", | ||
"COL_2" | ||
], | ||
"struct": { | ||
"types": [ | ||
{ | ||
"i32": { | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}, | ||
{ | ||
"varchar": { | ||
"length": 10, | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
} | ||
], | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}, | ||
"namedTable": { | ||
"names": [ | ||
"TEST" | ||
] | ||
} | ||
} | ||
}, | ||
"expressions": [ | ||
{ | ||
"selection": { | ||
"directReference": { | ||
"structField": { | ||
"field": 1 | ||
} | ||
}, | ||
"rootReference": {} | ||
} | ||
}, | ||
{ | ||
"scalarFunction": { | ||
"functionReference": 0, | ||
"args": [], | ||
"outputType": { | ||
"varchar": { | ||
"length": 10, | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}, | ||
"arguments": [ | ||
{ | ||
"value": { | ||
"selection": { | ||
"directReference": { | ||
"structField": { | ||
"field": 1 | ||
} | ||
}, | ||
"rootReference": {} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"names": [ | ||
"COL_2", | ||
"EXPR$1" | ||
] | ||
} | ||
} | ||
], | ||
"expectedTypeUrls": [] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please define the input argument as
const std::string& name
and cause the supportedStrFunctionSet only has three names, so if we want make this function more fast, codes can be written:
or
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the optimization advice!
pass-by-const-ref has been added.
Currently there are only 3 names, but more names are to be added in the future as more string ops are supported. I think leaving this part as is would be fine?