-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support path function calls in CallExpr (#232)
- Loading branch information
Showing
44 changed files
with
2,057 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SELECT SAFE.SUBSTR('foo', 0, -2) AS safe_output UNION ALL | ||
SELECT SAFE.SUBSTR('bar', 0, 2) AS safe_output |
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,21 @@ | ||
-- original: https://cloud.google.com/spanner/docs/reference/standard-sql/net_functions#nethost | ||
SELECT | ||
FORMAT("%T", input) AS input, | ||
description, | ||
FORMAT("%T", NET.HOST(input)) AS host, | ||
FORMAT("%T", NET.PUBLIC_SUFFIX(input)) AS suffix, | ||
FORMAT("%T", NET.REG_DOMAIN(input)) AS domain, | ||
FORMAT("%T", SAFE.NET.HOST(input)) AS safe_host, | ||
FORMAT("%T", SAFE.NET.PUBLIC_SUFFIX(input)) AS safe_suffix, | ||
FORMAT("%T", SAFE.NET.REG_DOMAIN(input)) AS safe_domain | ||
FROM ( | ||
SELECT "" AS input, "invalid input" AS description | ||
UNION ALL SELECT "http://abc.xyz", "standard URL" | ||
UNION ALL SELECT "//user:[email protected]:80/path?query", | ||
"standard URL with relative scheme, port, path and query, but no public suffix" | ||
UNION ALL SELECT "https://[::1]:80", "standard URL with IPv6 host" | ||
UNION ALL SELECT "http://例子.卷筒纸.中国", "standard URL with internationalized domain name" | ||
UNION ALL SELECT " www.Example.Co.UK ", | ||
"non-standard URL with spaces, upper case letters, and without scheme" | ||
UNION ALL SELECT "mailto:?to=&subject=&body=", "URI rather than URL--unsupported" | ||
) |
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
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.