I tried with quickstart which has a minimal-7.0.3
tag. Looks brand new.
I turned on tracing: SET GLOBAL general_log = ON;
I was originally looking at memsql.log
, but looks like queries.log
is the interesting one.
Here’s what I see:
-- [453069049]
/* mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e ) */SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout;
-- [453070451]
SET NAMES utf8;
-- [453071040]
SET character_set_results = NULL;
-- [453072040]
SET autocommit=1;
-- [453072946]
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-- [453073763]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453075145]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453076357]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453077845]
SELECT TABLE_SCHEMA AS TABLE_CAT, NULL AS TABLE_SCHEM, TABLE_NAME, CASE WHEN TABLE_TYPE='BASE TABLE' THEN CASE WHEN TABLE_SCHEMA = 'mysql' OR TABLE_SCHEMA = 'performance_schema' THEN 'SYSTEM TABLE' ELSE 'TABLE' END WHEN TABLE_TYPE='TEMPORARY' THEN 'LOCAL_TEMPORARY' ELSE TABLE_TYPE END AS TABLE_TYPE, TABLE_COMMENT AS REMARKS, NULL AS TYPE_CAT, NULL AS TYPE_SCHEM, NULL AS TYPE_NAME, NULL AS SELF_REFERENCING_COL_NAME, NULL AS REF_GENERATION FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'presto' AND TABLE_NAME = 'ctas' HAVING TABLE_TYPE IN ('TABLE','VIEW',null,null,null) ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
-- [453098723]
/* mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e ) */SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout;
-- [453100064]
SET NAMES utf8;
-- [453100745]
SET character_set_results = NULL;
-- [453101760]
SET autocommit=1;
-- [453102601]
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-- [453103375]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453104996]
SHOW DATABASES;
-- [453109403]
/* mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e ) */SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout;
-- [453110910]
SET NAMES utf8;
-- [453111721]
SET character_set_results = NULL;
-- [453112556]
SET autocommit=1;
-- [453113324]
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-- [453114237]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453115690]
CREATE TABLE `presto`.`tmp_presto_867af7155fa74c0c92cc261ea37c681a` (`col1` integer);
-- [453422493]
/* mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e ) */SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout;
-- [453432487]
SET NAMES utf8;
-- [453434193]
SET character_set_results = NULL;
-- [453435819]
SET autocommit=1;
-- [453437165]
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-- [453438512]
SET autocommit=0;
-- [453439547]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453447054]
INSERT INTO `presto`.`tmp_presto_867af7155fa74c0c92cc261ea37c681a` VALUES (1);
-- [453479190]
commit;
-- [453480155]
rollback;
-- [453497031]
/* mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e ) */SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout;
-- [453498741]
SET NAMES utf8;
-- [453499760]
SET character_set_results = NULL;
-- [453500890]
SET autocommit=1;
-- [453501847]
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-- [453502827]
SHOW FULL TABLES FROM `INFORMATION_SCHEMA` LIKE 'PARAMETERS';
-- [453504748]
ALTER TABLE `presto`.`tmp_presto_867af7155fa74c0c92cc261ea37c681a` RENAME TO `presto`.`ctas`;
-- [453526930]
/* mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e ) */SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout;
-- [453528537]
SET NAMES utf8;
-- [453529565]
SET character_set_results = NULL;
-- [453530415]
SET autocommit=1;
-- [453532501]
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
-- [453533955]
DROP TABLE `presto`.`tmp_presto_867af7155fa74c0c92cc261ea37c681a`;
I can’t tell what’s failing exactly, but probably this statement:
ALTER TABLE `presto`.`tmp_presto_867af7155fa74c0c92cc261ea37c681a` RENAME TO `presto`.`ctas`;
That looks exactly like the bug you identified previously, so perhaps not quite fixed in this Docker image?