We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the unexpected behaviour
SELECT domain('http://localhost') return empty string.
SELECT domain('http://localhost')
How to reproduce
22.12.2
Expected behavior
Should return localhost. Same for other single-level domains.
localhost
The text was updated successfully, but these errors were encountered:
That is expected. From comment of FunctionDomain, it returns:
FunctionDomain
ClickHouse/src/Functions/URL/domain.h
Lines 132 to 135 in c4f4a1d
Sorry, something went wrong.
That is expected. From comment of FunctionDomain, it returns: ClickHouse/src/Functions/URL/domain.h Lines 132 to 135 in c4f4a1d /// Extracts host from given url. /// /// @return empty string view if the host is not valid (i.e. it does not have dot, or there no symbol after dot). inline std::string_view getURLHost(const char * data, size_t size)
It does not change the fact that localhost is a valid domain.
duplicate #31106
No branches or pull requests
Describe the unexpected behaviour
SELECT domain('http://localhost')
return empty string.How to reproduce
22.12.2
Expected behavior
Should return
localhost
.Same for other single-level domains.
The text was updated successfully, but these errors were encountered: