You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/04/17 06:27:02 UTC

[GitHub] [incubator-superset] wenlongGit commented on issue #7169: IntegrityError when running long query on SQL Lab

wenlongGit commented on issue #7169: IntegrityError when running long query on SQL Lab
URL: https://github.com/apache/incubator-superset/issues/7169#issuecomment-483954247
 
 
   I have encountered the same problem.
   Also connect to prestodb.
   
   411, in _query rowcount = self._do_query(q) File "/opt/superset/lib/python3.5/site-packages/MySQLdb/cursors.py", 
   374, in _do_query db.query(q) File "/opt/superset/lib/python3.5/site-packages/MySQLdb/connections.py", 
   277, in query _mysql.connection.query(self, query) sqlalchemy.exc.IntegrityError: (_mysql_exceptions.IntegrityError) (1062, "Duplicate entry 'BJVLVEN5N' for key 'client_id'") [SQL: 'INSERT INTO query (client_id, database_id, tmp_table_name, user_id, status, tab_name, sql_editor_id, `schema`, `sql`, select_sql, executed_sql, `limit`, limit_used, select_as_cta, select_as_cta_used, progress, rows, error_message, results_key, start_time, start_running_time, end_time, end_result_backend_time, tracking_url, changed_on) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)'] [parameters: ('BJVLVEN5N', 11, '', 1, 'running', 'Untitled Query 2', 'SkHiCG4cV', None, " select\n d_uid,\n d_nickname,\n d_follow,\n d_allvideo,\n d_a_cnt,\n d_s_cnt\n from adm.f_app_content_author_basic_element_historytotal\n where dt='2019-04-16' and d_uid>0 and d_uid<>32", None, None, 1000000, 0, 0, 0, 0, None, None, None, 1555477608083.014, None, None, None, None, datetime.datetime(2019, 4, 17, 5, 6, 48, 85637))]
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org