File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 40
40
import prestodb .logging
41
41
import prestodb .redirect
42
42
import requests
43
+ from six .moves .urllib .parse import urlparse
43
44
from prestodb import constants , exceptions
44
45
from prestodb .transaction import NO_TRANSACTION
45
46
@@ -337,7 +338,8 @@ def statement_url(self):
337
338
@property
338
339
def next_uri (self ):
339
340
# type: () -> Text
340
- return self ._next_uri
341
+ next_uri_path = urlparse (self ._next_uri ).path
342
+ return self .get_url (next_uri_path )
341
343
342
344
def post (self , sql ):
343
345
data = sql .encode ("utf-8" )
@@ -431,7 +433,7 @@ def process(self, http_response):
431
433
stats = response ["stats" ],
432
434
warnings = response .get ("warnings" , []),
433
435
info_uri = response ["infoUri" ],
434
- next_uri = self ._next_uri ,
436
+ next_uri = self .next_uri ,
435
437
rows = response .get ("data" , []),
436
438
columns = response .get ("columns" ),
437
439
)
You can’t perform that action at this time.
0 commit comments