-
Notifications
You must be signed in to change notification settings - Fork 156
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
Cannot not extract queryId exactly in code, is that a bug? #135
Comments
Sorry, if I misunderstood your question, why can we not extract the
Line 42 in 39d7d5f
This is used when a Trino UI path is passed to the gateway. Line 204 in 39d7d5f
|
Hi, amitds1997, thanks for your reply. Line 157 in 39d7d5f
So the variable path will be /ui/query.html without 20200416_160256_03078_6b4yt , the variable queryParams will be 20200416_160256_03078_6b4yt in this case.
So regexp cannot extract The above is my understanding. I reproduce it in my code. If there is a problem with my understanding, please tell me. By the way, my prestosql version is |
I have looked at other fork repo, such as You can have a see. |
Yes, that seems to be a bug. |
Hi, thanks for your repo, it give me a lot of inspiration.
But I found a bug, this is code segment:
presto-gateway/gateway-ha/src/main/java/com/lyft/data/gateway/ha/handler/QueryIdCachingProxyHandler.java
Line 156 in 39d7d5f
It use a overload method
extractQueryIdIfPresent(path, queryParams)
, and the test caseTestQueryIdCachingProxyHandler
testextractQueryIdIfPresent(path, queryParams)
.But if the request url is "/ui/query.html?20200416_160256_03078_6b4yt", path will be "/ui/query.html" and queryParams will be "20200416_160256_03078_6b4yt", in this case, we cannot not extract queryId exactly and get
null
Logic is not the same as test case.
presto-gateway/gateway-ha/src/test/java/com/lyft/data/gateway/ha/handler/TestQueryIdCachingProxyHandler.java
Line 26 in 39d7d5f
I think it's a bug, isn't it?
The text was updated successfully, but these errors were encountered: