-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Fix](url) fix wrong result in function parse_url #56429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix](url) fix wrong result in function parse_url #56429
Conversation
|
run buildall |
...ssion-test/suites/nereids_p0/expression/fold_constant/fold_constant_string_arithmatic.groovy
Show resolved
Hide resolved
|
run buildall |
zclllyybb
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
ClickBench: Total hot run time: 30.19 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
FE Regression Coverage ReportIncrement line coverage |
HappenLee
left a comment
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.
LGTM
1. wrong ans of `PORT` in BE && FE fold constant:
Before:
```text
mysql> SELECT PARSE_URL('http://user:pwd@example.com:8080/path/to/resource', 'PORT');
+------------------------------------------------------------------------+
| PARSE_URL('http://user:pwd@example.com:8080/path/to/resource', 'PORT') |
+------------------------------------------------------------------------+
| mple.com:8080 |
+------------------------------------------------------------------------+
mysql> SELECT PARSE_URL('http://user:pwd@www.test.com/path?query=string#frag', 'PORT');
+--------------------------------------------------------------------------+
| PARSE_URL('http://user:pwd@www.test.com/path?query=string#frag', 'PORT') |
+--------------------------------------------------------------------------+
| -1 |
+--------------------------------------------------------------------------+
```
After:
```text
mysql> SELECT PARSE_URL('http://user:pwd@example.com:8080/path/to/resource', 'PORT');
+------------------------------------------------------------------------+
| PARSE_URL('http://user:pwd@example.com:8080/path/to/resource', 'PORT') |
+------------------------------------------------------------------------+
| 8080 |
+------------------------------------------------------------------------+
mysql> SELECT PARSE_URL('http://user:pwd@www.test.com/path?query=string#frag', 'PORT');
+--------------------------------------------------------------------------+
| PARSE_URL('http://user:pwd@www.test.com/path?query=string#frag', 'PORT') |
+--------------------------------------------------------------------------+
| NULL |
+--------------------------------------------------------------------------+
```
---
2. wrong ans of `PATH` in FE fold constant
Before:
```text
mysql> SELECT PARSE_URL('invalid-url', 'PATH');
+----------------------------------+
| PARSE_URL('invalid-url', 'PATH') |
+----------------------------------+
| invalid-url |
+----------------------------------+
```
After:
```text
mysql> SELECT PARSE_URL('invalid-url', 'PATH');
+----------------------------------+
| PARSE_URL('invalid-url', 'PATH') |
+----------------------------------+
| NULL |
+----------------------------------+
```
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
PORTin BE && FE fold constant:Before:
After:
PATHin FE fold constantBefore:
After:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)