-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move some logic from URLFunctions.h to URIParser (#11761)
Summary: Pull Request resolved: #11761 There's some UDFs outside of prestosql's URL functions where I'd like to reuse some of the logic I wrote for handling URIs. Specifically: * tryConsumeIPV6Address: this is generally useful for parsing IPv6 addresses * isMultipleInvalidSequences: this is generally useful for determining how many valid subsequences make up an invalid code point from tryGetUtf8CharLength. * extractParameter: this is generally useful for extracting the parameter from a URI's query string This change moves those functions into URIParser where they can be reused. Reviewed By: kgpai, yuandagits Differential Revision: D66832201 fbshipit-source-id: bf10289b49ac3b0abd572f2b5a985b7758f4bee4
- Loading branch information
1 parent
1bbf4f8
commit 1b5d3db
Showing
3 changed files
with
169 additions
and
150 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