Skip to content

Commit

Permalink
[bugfix] capture Hive job_id pre-url transformation (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Aug 1, 2017
1 parent 299e9ce commit 774ad45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,13 +751,13 @@ def handle_cursor(cls, cursor, query, session):
if not tracking_url:
tracking_url = cls.get_tracking_url(log_lines)
if tracking_url:
job_id = tracking_url.split('/')[-2]
logging.info(
"Found the tracking url: {}".format(tracking_url))
tracking_url = tracking_url_trans(tracking_url)
logging.info(
"Transformation applied: {}".format(tracking_url))
query.tracking_url = tracking_url
job_id = tracking_url.split('/')[-2]
logging.info("Job id: {}".format(job_id))
needs_commit = True
if job_id and len(log_lines) > last_log_line:
Expand Down

0 comments on commit 774ad45

Please sign in to comment.