You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Victor-Sivov (via GitHub)" <gi...@apache.org> on 2023/06/27 11:36:37 UTC
[GitHub] [superset] Victor-Sivov opened a new issue, #24528: Error when enabling TAGGING_SYSTEM feature in Apache Superset
Victor-Sivov opened a new issue, #24528:
URL: https://github.com/apache/superset/issues/24528
Hello there,
I am experiencing an issue when enabling the TAGGING_SYSTEM feature in Apache Superset. Upon activating this feature, the creation of datasets fails.
The specific error I receive is: "superset.datasets.commands.exceptions.DatasetCreateFailedError: Dataset creation failed." This error also occurs when trying to edit existing datasets and when creating duplicates.
Steps to reproduce:
Enable TAGGING_SYSTEM feature in Apache Superset.
Attempt to create, edit or duplicate a dataset.
Expected result:
Datasets should be created, edited, or duplicated successfully without any errors.
Actual result:
The error "superset.datasets.commands.exceptions.DatasetCreateFailedError: Dataset creation failed" is displayed.

Despite these errors, queries are executed and charts are saved correctly.
This issue impedes the full utilization of the TAGGING_SYSTEM feature, as the creation and manipulation of datasets is a critical part of using Apache Superset. Your assistance in resolving this problem would be greatly appreciated.
Thank you for your support.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error when enabling TAGGING_SYSTEM feature in Apache Superset [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #24528:
URL: https://github.com/apache/superset/issues/24528#issuecomment-1992533070
Tagging was not complete in the 2.x release, or even in the 3.x release, really. This is likely fixed by now, and is pretty out of date if not. If people are still encountering this in current versions (3.1 or newer) please open a new Issue with updated context or a PR to address the problem. Thanks!
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] hughhhh commented on issue #24528: Error when enabling TAGGING_SYSTEM feature in Apache Superset
Posted by "hughhhh (via GitHub)" <gi...@apache.org>.
hughhhh commented on issue #24528:
URL: https://github.com/apache/superset/issues/24528#issuecomment-1622192384
@vvsiv are you still experiencing this issue?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error when enabling TAGGING_SYSTEM feature in Apache Superset [superset]
Posted by "bmtcril (via GitHub)" <gi...@apache.org>.
bmtcril commented on issue #24528:
URL: https://github.com/apache/superset/issues/24528#issuecomment-2052107571
@rusackas I'm still seeing this on 4.0.0 the problem seems to be that `tagged_object.object_type` is an enum:
```
`object_type` enum('query','chart','dashboard') DEFAULT NULL,
```
While the insert is trying to insert the value `dataset`. Can we reopen this or should I open a new ticket?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error when enabling TAGGING_SYSTEM feature in Apache Superset [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #24528: Error when enabling TAGGING_SYSTEM feature in Apache Superset
URL: https://github.com/apache/superset/issues/24528
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error when enabling TAGGING_SYSTEM feature in Apache Superset [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #24528:
URL: https://github.com/apache/superset/issues/24528#issuecomment-2052420621
Thanks for letting us know @bmtcril - I think in this case, it would be nice to start from a clean slate, with a new ticket referring to the current version. Any steps to make a simple and reproducible test case would be appreciated :)
Thanks again!
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] vvsiv commented on issue #24528: Error when enabling TAGGING_SYSTEM feature in Apache Superset
Posted by "vvsiv (via GitHub)" <gi...@apache.org>.
vvsiv commented on issue #24528:
URL: https://github.com/apache/superset/issues/24528#issuecomment-1645576548
> @vvsiv are you still experiencing this issue?
@hughhhh Yes, unfortunately the problem still exists.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] rodionxabibov commented on issue #24528: Error when enabling TAGGING_SYSTEM feature in Apache Superset
Posted by "rodionxabibov (via GitHub)" <gi...@apache.org>.
rodionxabibov commented on issue #24528:
URL: https://github.com/apache/superset/issues/24528#issuecomment-1723470052
I faced the same problem, used mysql 5.7 db
```
2023-09-18_13:41:32.53351 /path/superset/lib64/python3.8/site-packages/clickhouse_sqlalchemy/drivers/base.py:273: SAWarning: Did not recognize type 'DateTime('UTC')' of column 'start_date'
2023-09-18_13:41:32.53354 warn("Did not recognize type '%s' of column '%s'" %
2023-09-18_13:41:32.53354 /path/superset/lib64/python3.8/site-packages/clickhouse_sqlalchemy/drivers/base.py:273: SAWarning: Did not recognize type 'DateTime('UTC')' of column 'stop_date'
2023-09-18_13:41:32.53355 warn("Did not recognize type '%s' of column '%s'" %
2023-09-18_13:41:32.53355 /path/superset/lib64/python3.8/site-packages/clickhouse_sqlalchemy/drivers/base.py:273: SAWarning: Did not recognize type 'DateTime('UTC')' of column 'load_at'
2023-09-18_13:41:32.53356 warn("Did not recognize type '%s' of column '%s'" %
2023-09-18_13:41:32.53356 2023-09-18 16:41:32,533:INFO:werkzeug:192.168.221.146 - - [18/Sep/2023 16:41:32] "GET /api/v1/database/14/table/bonus_program/ods/ HTTP/1.1" 200 -
2023-09-18_13:41:33.58502 /path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py:2362: SAWarning: transaction already deassociated from connection
2023-09-18_13:41:33.58505 util.warn("transaction already deassociated from connection")
2023-09-18_13:41:33.58505 (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
2023-09-18_13:41:33.58505 (MySQLdb.DataError) (1265, "Data truncated for column 'object_type' at row 1")
2023-09-18_13:41:33.58506 [SQL: INSERT INTO tagged_object (created_on, changed_on, tag_id, object_id, object_type, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s)]
2023-09-18_13:41:33.58506 [parameters: (datetime.datetime(2023, 9, 18, 16, 41, 33, 575436), datetime.datetime(2023, 9, 18, 16, 41, 33, 575440), 16, 290, 'dataset', 15, 15)]
2023-09-18_13:41:33.58508 (Background on this error at: http://sqlalche.me/e/14/9h9h)
2023-09-18_13:41:33.58508 Traceback (most recent call last):
2023-09-18_13:41:33.58508 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1705, in _execute_context
2023-09-18_13:41:33.58509 self.dialect.do_execute(
2023-09-18_13:41:33.58509 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/default.py", line 681, in do_execute
2023-09-18_13:41:33.58511 cursor.execute(statement, parameters)
2023-09-18_13:41:33.58512 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
2023-09-18_13:41:33.58512 res = self._query(query)
2023-09-18_13:41:33.58513 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
2023-09-18_13:41:33.58513 db.query(q)
2023-09-18_13:41:33.58513 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
2023-09-18_13:41:33.58514 _mysql.connection.query(self, query)
2023-09-18_13:41:33.58514 MySQLdb.DataError: (1265, "Data truncated for column 'object_type' at row 1")
2023-09-18_13:41:33.58514
2023-09-18_13:41:33.58515 The above exception was the direct cause of the following exception:
2023-09-18_13:41:33.58515
2023-09-18_13:41:33.58515 Traceback (most recent call last):
2023-09-18_13:41:33.58516 File "/path/superset/lib64/python3.8/site-packages/superset/datasets/commands/create.py", line 49, in run
2023-09-18_13:41:33.58516 dataset.fetch_metadata(commit=False)
2023-09-18_13:41:33.58517 File "/path/superset/lib64/python3.8/site-packages/superset/connectors/sqla/models.py", line 1970, in fetch_metadata
2023-09-18_13:41:33.58517 new_columns = self.external_metadata()
2023-09-18_13:41:33.58517 File "/path/superset/lib64/python3.8/site-packages/superset/connectors/sqla/models.py", line 767, in external_metadata
2023-09-18_13:41:33.58520 return get_physical_table_metadata(
2023-09-18_13:41:33.58520 File "/path/superset/lib64/python3.8/site-packages/superset/connectors/sqla/utils.py", line 72, in get_physical_table_metadata
2023-09-18_13:41:33.58520 database.has_table_by_name(table_name=table_name, schema=_schema_name)
2023-09-18_13:41:33.58521 File "/path/superset/lib64/python3.8/site-packages/superset/models/core.py", line 877, in has_table_by_name
2023-09-18_13:41:33.58521 with self.get_sqla_engine_with_context() as engine:
2023-09-18_13:41:33.58521 File "/opt/rh/rh-python38/root/usr/lib64/python3.8/contextlib.py", line 113, in __enter__
2023-09-18_13:41:33.58522 return next(self.gen)
2023-09-18_13:41:33.58522 File "/path/superset/lib64/python3.8/site-packages/superset/models/core.py", line 393, in get_sqla_engine_with_context
2023-09-18_13:41:33.58523 ssh_tunnel = override_ssh_tunnel or DatabaseDAO.get_ssh_tunnel(
2023-09-18_13:41:33.58523 File "/path/superset/lib64/python3.8/site-packages/superset/databases/dao.py", line 132, in get_ssh_tunnel
2023-09-18_13:41:33.58523 db.session.query(SSHTunnel)
2023-09-18_13:41:33.58524 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/query.py", line 2721, in one_or_none
2023-09-18_13:41:33.58526 return self._iter().one_or_none()
2023-09-18_13:41:33.58526 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/query.py", line 2779, in _iter
2023-09-18_13:41:33.58527 result = self.session.execute(
2023-09-18_13:41:33.58527 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 1610, in execute
2023-09-18_13:41:33.58527 ) = compile_state_cls.orm_pre_session_exec(
2023-09-18_13:41:33.58528 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/context.py", line 283, in orm_pre_session_exec
2023-09-18_13:41:33.58528 session._autoflush()
2023-09-18_13:41:33.58528 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 2144, in _autoflush
2023-09-18_13:41:33.58529 util.raise_(e, with_traceback=sys.exc_info()[2])
2023-09-18_13:41:33.58530 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58530 raise exception
2023-09-18_13:41:33.58531 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 2133, in _autoflush
2023-09-18_13:41:33.58531 self.flush()
2023-09-18_13:41:33.58531 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3224, in flush
2023-09-18_13:41:33.58533 self._flush(objects)
2023-09-18_13:41:33.58534 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3364, in _flush
2023-09-18_13:41:33.58534 transaction.rollback(_capture_exception=True)
2023-09-18_13:41:33.58535 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-09-18_13:41:33.58535 compat.raise_(
2023-09-18_13:41:33.58535 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58536 raise exception
2023-09-18_13:41:33.58536 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3324, in _flush
2023-09-18_13:41:33.58536 flush_context.execute()
2023-09-18_13:41:33.58537 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 453, in execute
2023-09-18_13:41:33.58537 rec.execute(self)
2023-09-18_13:41:33.58538 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 627, in execute
2023-09-18_13:41:33.58538 util.preloaded.orm_persistence.save_obj(
2023-09-18_13:41:33.58538 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 250, in save_obj
2023-09-18_13:41:33.58541 _finalize_insert_update_commands(
2023-09-18_13:41:33.58541 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 1538, in _finalize_insert_update_commands
2023-09-18_13:41:33.58541 mapper.dispatch.after_insert(mapper, connection, state)
2023-09-18_13:41:33.58542 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/event/attr.py", line 320, in __call__
2023-09-18_13:41:33.58542 fn(*args, **kw)
2023-09-18_13:41:33.58542 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/events.py", line 743, in wrap
2023-09-18_13:41:33.58543 fn(*arg, **kw)
2023-09-18_13:41:33.58543 File "/path/superset/lib64/python3.8/site-packages/superset/tags/models.py", line 159, in after_insert
2023-09-18_13:41:33.58544 tag = get_tag("type:{0}".format(cls.object_type), session, TagTypes.type)
2023-09-18_13:41:33.58544 File "/path/superset/lib64/python3.8/site-packages/superset/tags/models.py", line 105, in get_tag
2023-09-18_13:41:33.58544 session.commit()
2023-09-18_13:41:33.58545 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 1406, in commit
2023-09-18_13:41:33.58545 self._transaction.commit(_to_root=self.future)
2023-09-18_13:41:33.58547 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 820, in commit
2023-09-18_13:41:33.58548 self._prepare_impl()
2023-09-18_13:41:33.58548 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 799, in _prepare_impl
2023-09-18_13:41:33.58548 self.session.flush()
2023-09-18_13:41:33.58549 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3224, in flush
2023-09-18_13:41:33.58549 self._flush(objects)
2023-09-18_13:41:33.58549 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3364, in _flush
2023-09-18_13:41:33.58550 transaction.rollback(_capture_exception=True)
2023-09-18_13:41:33.58550 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-09-18_13:41:33.58552 compat.raise_(
2023-09-18_13:41:33.58552 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58552 raise exception
2023-09-18_13:41:33.58553 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3324, in _flush
2023-09-18_13:41:33.58553 flush_context.execute()
2023-09-18_13:41:33.58553 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 453, in execute
2023-09-18_13:41:33.58556 rec.execute(self)
2023-09-18_13:41:33.58556 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 627, in execute
2023-09-18_13:41:33.58556 util.preloaded.orm_persistence.save_obj(
2023-09-18_13:41:33.58557 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 242, in save_obj
2023-09-18_13:41:33.58557 _emit_insert_statements(
2023-09-18_13:41:33.58557 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 1219, in _emit_insert_statements
2023-09-18_13:41:33.58558 result = connection._execute_20(
2023-09-18_13:41:33.58558 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1520, in _execute_20
2023-09-18_13:41:33.58559 return meth(self, args_10style, kwargs_10style, execution_options)
2023-09-18_13:41:33.58559 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/sql/elements.py", line 313, in _execute_on_connection
2023-09-18_13:41:33.58559 return connection._execute_clauseelement(
2023-09-18_13:41:33.58560 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1389, in _execute_clauseelement
2023-09-18_13:41:33.58563 ret = self._execute_context(
2023-09-18_13:41:33.58563 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1748, in _execute_context
2023-09-18_13:41:33.58564 self._handle_dbapi_exception(
2023-09-18_13:41:33.58564 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1929, in _handle_dbapi_exception
2023-09-18_13:41:33.58564 util.raise_(
2023-09-18_13:41:33.58565 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58565 raise exception
2023-09-18_13:41:33.58566 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1705, in _execute_context
2023-09-18_13:41:33.58566 self.dialect.do_execute(
2023-09-18_13:41:33.58566 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/default.py", line 681, in do_execute
2023-09-18_13:41:33.58567 cursor.execute(statement, parameters)
2023-09-18_13:41:33.58567 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
2023-09-18_13:41:33.58567 res = self._query(query)
2023-09-18_13:41:33.58568 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
2023-09-18_13:41:33.58568 db.query(q)
2023-09-18_13:41:33.58570 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
2023-09-18_13:41:33.58571 _mysql.connection.query(self, query)
2023-09-18_13:41:33.58571 sqlalchemy.exc.DataError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
2023-09-18_13:41:33.58572 (MySQLdb.DataError) (1265, "Data truncated for column 'object_type' at row 1")
2023-09-18_13:41:33.58572 [SQL: INSERT INTO tagged_object (created_on, changed_on, tag_id, object_id, object_type, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s)]
2023-09-18_13:41:33.58572 [parameters: (datetime.datetime(2023, 9, 18, 16, 41, 33, 575436), datetime.datetime(2023, 9, 18, 16, 41, 33, 575440), 16, 290, 'dataset', 15, 15)]
2023-09-18_13:41:33.58573 (Background on this error at: http://sqlalche.me/e/14/9h9h)
2023-09-18_13:41:33.58573 2023-09-18 16:41:33,577:WARNING:superset.datasets.commands.create:(raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
2023-09-18_13:41:33.58574 (MySQLdb.DataError) (1265, "Data truncated for column 'object_type' at row 1")
2023-09-18_13:41:33.58576 [SQL: INSERT INTO tagged_object (created_on, changed_on, tag_id, object_id, object_type, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s)]
2023-09-18_13:41:33.58577 [parameters: (datetime.datetime(2023, 9, 18, 16, 41, 33, 575436), datetime.datetime(2023, 9, 18, 16, 41, 33, 575440), 16, 290, 'dataset', 15, 15)]
2023-09-18_13:41:33.58577 (Background on this error at: http://sqlalche.me/e/14/9h9h)
2023-09-18_13:41:33.58577 Traceback (most recent call last):
2023-09-18_13:41:33.58578 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1705, in _execute_context
2023-09-18_13:41:33.58578 self.dialect.do_execute(
2023-09-18_13:41:33.58578 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/default.py", line 681, in do_execute
2023-09-18_13:41:33.58579 cursor.execute(statement, parameters)
2023-09-18_13:41:33.58579 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
2023-09-18_13:41:33.58580 res = self._query(query)
2023-09-18_13:41:33.58580 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
2023-09-18_13:41:33.58580 db.query(q)
2023-09-18_13:41:33.58581 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
2023-09-18_13:41:33.58583 _mysql.connection.query(self, query)
2023-09-18_13:41:33.58583 MySQLdb.DataError: (1265, "Data truncated for column 'object_type' at row 1")
2023-09-18_13:41:33.58584
2023-09-18_13:41:33.58584 The above exception was the direct cause of the following exception:
2023-09-18_13:41:33.58584
2023-09-18_13:41:33.58585 Traceback (most recent call last):
2023-09-18_13:41:33.58585 File "/path/superset/lib64/python3.8/site-packages/superset/datasets/commands/create.py", line 49, in run
2023-09-18_13:41:33.58585 dataset.fetch_metadata(commit=False)
2023-09-18_13:41:33.58586 File "/path/superset/lib64/python3.8/site-packages/superset/connectors/sqla/models.py", line 1970, in fetch_metadata
2023-09-18_13:41:33.58586 new_columns = self.external_metadata()
2023-09-18_13:41:33.58586 File "/path/superset/lib64/python3.8/site-packages/superset/connectors/sqla/models.py", line 767, in external_metadata
2023-09-18_13:41:33.58587 return get_physical_table_metadata(
2023-09-18_13:41:33.58587 File "/path/superset/lib64/python3.8/site-packages/superset/connectors/sqla/utils.py", line 72, in get_physical_table_metadata
2023-09-18_13:41:33.58588 database.has_table_by_name(table_name=table_name, schema=_schema_name)
2023-09-18_13:41:33.58588 File "/path/superset/lib64/python3.8/site-packages/superset/models/core.py", line 877, in has_table_by_name
2023-09-18_13:41:33.58590 with self.get_sqla_engine_with_context() as engine:
2023-09-18_13:41:33.58590 File "/opt/rh/rh-python38/root/usr/lib64/python3.8/contextlib.py", line 113, in __enter__
2023-09-18_13:41:33.58591 return next(self.gen)
2023-09-18_13:41:33.58591 File "/path/superset/lib64/python3.8/site-packages/superset/models/core.py", line 393, in get_sqla_engine_with_context
2023-09-18_13:41:33.58592 ssh_tunnel = override_ssh_tunnel or DatabaseDAO.get_ssh_tunnel(
2023-09-18_13:41:33.58592 File "/path/superset/lib64/python3.8/site-packages/superset/databases/dao.py", line 132, in get_ssh_tunnel
2023-09-18_13:41:33.58592 db.session.query(SSHTunnel)
2023-09-18_13:41:33.58593 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/query.py", line 2721, in one_or_none
2023-09-18_13:41:33.58593 return self._iter().one_or_none()
2023-09-18_13:41:33.58594 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/query.py", line 2779, in _iter
2023-09-18_13:41:33.58594 result = self.session.execute(
2023-09-18_13:41:33.58595 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 1610, in execute
2023-09-18_13:41:33.58595 ) = compile_state_cls.orm_pre_session_exec(
2023-09-18_13:41:33.58597 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/context.py", line 283, in orm_pre_session_exec
2023-09-18_13:41:33.58598 session._autoflush()
2023-09-18_13:41:33.58598 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 2144, in _autoflush
2023-09-18_13:41:33.58598 util.raise_(e, with_traceback=sys.exc_info()[2])
2023-09-18_13:41:33.58599 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58599 raise exception
2023-09-18_13:41:33.58599 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 2133, in _autoflush
2023-09-18_13:41:33.58600 self.flush()
2023-09-18_13:41:33.58600 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3224, in flush
2023-09-18_13:41:33.58600 self._flush(objects)
2023-09-18_13:41:33.58601 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3364, in _flush
2023-09-18_13:41:33.58601 transaction.rollback(_capture_exception=True)
2023-09-18_13:41:33.58602 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-09-18_13:41:33.58602 compat.raise_(
2023-09-18_13:41:33.58604 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58604 raise exception
2023-09-18_13:41:33.58605 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3324, in _flush
2023-09-18_13:41:33.58605 flush_context.execute()
2023-09-18_13:41:33.58606 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 453, in execute
2023-09-18_13:41:33.58606 rec.execute(self)
2023-09-18_13:41:33.58606 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 627, in execute
2023-09-18_13:41:33.58607 util.preloaded.orm_persistence.save_obj(
2023-09-18_13:41:33.58607 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 250, in save_obj
2023-09-18_13:41:33.58607 _finalize_insert_update_commands(
2023-09-18_13:41:33.58608 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 1538, in _finalize_insert_update_commands
2023-09-18_13:41:33.58608 mapper.dispatch.after_insert(mapper, connection, state)
2023-09-18_13:41:33.58609 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/event/attr.py", line 320, in __call__
2023-09-18_13:41:33.58611 fn(*args, **kw)
2023-09-18_13:41:33.58611 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/events.py", line 743, in wrap
2023-09-18_13:41:33.58611 fn(*arg, **kw)
2023-09-18_13:41:33.58612 File "/path/superset/lib64/python3.8/site-packages/superset/tags/models.py", line 159, in after_insert
2023-09-18_13:41:33.58612 tag = get_tag("type:{0}".format(cls.object_type), session, TagTypes.type)
2023-09-18_13:41:33.58613 File "/path/superset/lib64/python3.8/site-packages/superset/tags/models.py", line 105, in get_tag
2023-09-18_13:41:33.58613 session.commit()
2023-09-18_13:41:33.58613 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 1406, in commit
2023-09-18_13:41:33.58614 self._transaction.commit(_to_root=self.future)
2023-09-18_13:41:33.58615 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 820, in commit
2023-09-18_13:41:33.58615 self._prepare_impl()
2023-09-18_13:41:33.58615 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 799, in _prepare_impl
2023-09-18_13:41:33.58616 self.session.flush()
2023-09-18_13:41:33.58616 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3224, in flush
2023-09-18_13:41:33.58617 self._flush(objects)
2023-09-18_13:41:33.58619 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3364, in _flush
2023-09-18_13:41:33.58619 transaction.rollback(_capture_exception=True)
2023-09-18_13:41:33.58619 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-09-18_13:41:33.58620 compat.raise_(
2023-09-18_13:41:33.58620 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58621 raise exception
2023-09-18_13:41:33.58621 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/session.py", line 3324, in _flush
2023-09-18_13:41:33.58621 flush_context.execute()
2023-09-18_13:41:33.58622 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 453, in execute
2023-09-18_13:41:33.58622 rec.execute(self)
2023-09-18_13:41:33.58622 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 627, in execute
2023-09-18_13:41:33.58623 util.preloaded.orm_persistence.save_obj(
2023-09-18_13:41:33.58623 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 242, in save_obj
2023-09-18_13:41:33.58623 _emit_insert_statements(
2023-09-18_13:41:33.58624 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 1219, in _emit_insert_statements
2023-09-18_13:41:33.58626 result = connection._execute_20(
2023-09-18_13:41:33.58626 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1520, in _execute_20
2023-09-18_13:41:33.58627 return meth(self, args_10style, kwargs_10style, execution_options)
2023-09-18_13:41:33.58627 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/sql/elements.py", line 313, in _execute_on_connection
2023-09-18_13:41:33.58628 return connection._execute_clauseelement(
2023-09-18_13:41:33.58628 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1389, in _execute_clauseelement
2023-09-18_13:41:33.58628 ret = self._execute_context(
2023-09-18_13:41:33.58629 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1748, in _execute_context
2023-09-18_13:41:33.58629 self._handle_dbapi_exception(
2023-09-18_13:41:33.58629 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1929, in _handle_dbapi_exception
2023-09-18_13:41:33.58630 util.raise_(
2023-09-18_13:41:33.58630 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
2023-09-18_13:41:33.58632 raise exception
2023-09-18_13:41:33.58633 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1705, in _execute_context
2023-09-18_13:41:33.58633 self.dialect.do_execute(
2023-09-18_13:41:33.58633 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/default.py", line 681, in do_execute
2023-09-18_13:41:33.58634 cursor.execute(statement, parameters)
2023-09-18_13:41:33.58634 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
2023-09-18_13:41:33.58635 res = self._query(query)
2023-09-18_13:41:33.58635 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
2023-09-18_13:41:33.58636 db.query(q)
2023-09-18_13:41:33.58636 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
2023-09-18_13:41:33.58637 _mysql.connection.query(self, query)
2023-09-18_13:41:33.58637 sqlalchemy.exc.DataError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
2023-09-18_13:41:33.58638 (MySQLdb.DataError) (1265, "Data truncated for column 'object_type' at row 1")
2023-09-18_13:41:33.58638 [SQL: INSERT INTO tagged_object (created_on, changed_on, tag_id, object_id, object_type, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s)]
2023-09-18_13:41:33.58640 [parameters: (datetime.datetime(2023, 9, 18, 16, 41, 33, 575436), datetime.datetime(2023, 9, 18, 16, 41, 33, 575440), 16, 290, 'dataset', 15, 15)]
2023-09-18_13:41:33.58641 (Background on this error at: http://sqlalche.me/e/14/9h9h)
2023-09-18_13:41:33.58664 Error creating model DatasetRestApi: Dataset could not be created.
2023-09-18_13:41:33.58665 Traceback (most recent call last):
2023-09-18_13:41:33.58665 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1705, in _execute_context
2023-09-18_13:41:33.58666 self.dialect.do_execute(
2023-09-18_13:41:33.58666 File "/path/superset/lib64/python3.8/site-packages/sqlalchemy/engine/default.py", line 681, in do_execute
2023-09-18_13:41:33.58667 cursor.execute(statement, parameters)
2023-09-18_13:41:33.58667 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
2023-09-18_13:41:33.58667 res = self._query(query)
2023-09-18_13:41:33.58668 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
2023-09-18_13:41:33.58668 db.query(q)
2023-09-18_13:41:33.58668 File "/path/superset/lib64/python3.8/site-packages/MySQLdb/connections.py", line 254, in query
2023-09-18_13:41:33.58669 _mysql.connection.query(self, query)
2023-09-18_13:41:33.58669 MySQLdb.DataError: (1265, "Data truncated for column 'object_type' at row 1")
```
```
pip3 list
aiohttp 3.8.1
aiosignal 1.2.0
alembic 1.6.5
amqp 5.1.1
apache-superset 2.1.1
apispec 6.3.0
async-generator 1.10
async-timeout 4.0.2
asynch 0.2.2
attrs 21.4.0
Babel 2.10.3
backoff 2.1.2
backports.zoneinfo 0.2.1
bcrypt 4.0.1
billiard 3.6.4.0
bleach 3.3.1
Brotli 1.0.9
cachelib 0.4.1
celery 5.2.7
certifi 2022.6.15
cffi 1.15.1
charset-normalizer 2.1.0
ciso8601 2.3.0
click 8.1.3
click-didyoumean 0.3.0
click-plugins 1.1.1
click-repl 0.2.0
clickhouse-cityhash 1.0.2.4
clickhouse-driver 0.2.0
clickhouse-sqlalchemy 0.2.4
colorama 0.4.5
convertdate 2.4.0
cron-descriptor 1.2.31
croniter 1.3.5
cryptography 39.0.2
cx-Oracle 8.3.0
dataclasses 0.6
Deprecated 1.2.13
deprecation 2.1.0
dnspython 2.2.1
email-validator 1.2.1
Flask 2.1.3
Flask-AppBuilder 4.3.6
Flask-Babel 2.0.0
Flask-Caching 1.10.1
Flask-Compress 1.14
Flask-JWT-Extended 4.4.2
Flask-Limiter 3.5.0
Flask-Login 0.6.0
Flask-Migrate 3.1.0
Flask-SQLAlchemy 2.5.1
flask-talisman 1.0.0
Flask-WTF 1.0.1
frozenlist 1.3.0
func-timeout 4.3.5
geographiclib 1.52
geopy 2.2.0
graphlib-backport 1.0.3
greenlet 2.0.2
gunicorn 20.1.0
h11 0.13.0
hashids 1.3.1
hijri-converter 2.3.1
holidays 0.17.2
humanize 4.2.3
idna 3.3
importlib-metadata 4.12.0
importlib-resources 5.8.0
isodate 0.6.1
itsdangerous 2.1.2
Jinja2 3.1.2
jsonschema 4.7.2
kombu 5.2.4
korean-lunar-calendar 0.2.1
leb128 1.0.5
limits 3.6.0
lz4 4.3.2
Mako 1.2.1
Markdown 3.4.1
markdown-it-py 3.0.0
MarkupSafe 2.1.1
marshmallow 3.20.1
marshmallow-enum 1.5.1
marshmallow-sqlalchemy 0.26.1
mdurl 0.1.2
msgpack 1.0.4
multidict 6.0.2
mysqlclient 2.1.1
numpy 1.23.5
ordered-set 4.1.0
outcome 1.2.0
packaging 21.3
pandas 1.5.3
paramiko 2.11.0
parsedatetime 2.6
pgsanity 0.2.9
Pillow 9.2.0
pip 23.2.1
polyline 1.4.0
prison 0.2.1
prompt-toolkit 3.0.30
psycopg2-binary 2.9.3
pyarrow 10.0.1
pycparser 2.21
Pygments 2.16.1
PyJWT 2.4.0
PyMeeus 0.5.11
PyMySQL 1.1.0
PyNaCl 1.5.0
pyodbc 4.0.39
pyOpenSSL 22.0.0
pyparsing 3.0.9
pyrsistent 0.18.1
PySocks 1.7.1
python-dateutil 2.8.2
python-dotenv 0.20.0
python-editor 1.0.4
python-geohash 0.8.5
pytz 2022.1
PyYAML 6.0
redis 4.3.4
requests 2.28.1
rich 13.5.2
selenium 4.3.0
setuptools 68.2.2
simplejson 3.17.6
six 1.16.0
slack-sdk 3.22.0
slackclient 2.5.0
sniffio 1.2.0
sortedcontainers 2.4.0
SQLAlchemy 1.4.36
SQLAlchemy-Utils 0.38.3
sqlparse 0.4.3
sshtunnel 0.4.0
tabulate 0.8.9
trio 0.21.0
trio-websocket 0.9.2
typing_extensions 4.7.1
tzlocal 2.1
urllib3 1.26.10
vine 5.0.0
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 2.0.3
wheel 0.37.1
wrapt 1.15.0
wsproto 1.1.0
WTForms 2.3.3
WTForms-JSON 0.3.5
XlsxWriter 3.0.9
yarl 1.7.2
zipp 3.8.1
zstd 1.5.5.1
```
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org