Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error updating table colums from changed source #9278

Closed
glrvrl opened this issue Mar 11, 2020 · 3 comments
Closed

Error updating table colums from changed source #9278

glrvrl opened this issue Mar 11, 2020 · 3 comments
Labels
inactive Inactive for >= 30 days

Comments

@glrvrl
Copy link

glrvrl commented Mar 11, 2020

Error updating table colums from source

(psycopg2.DataError) value too long for type character varying(32) [SQL: UPDATE table_columns SET changed_on=%(changed_on)s, is_active=%(is_active)s, type=%(type)s, is_dttm=%(is_dttm)s, changed_by_fk=%(changed_by_fk)s WHERE table_columns.id = %(table_columns_id)s] [parameters: ({'changed_on': datetime.datetime(2020, 3, 11, 6, 22, 30, 509794), 'is_active': None, 'type': 'TINYINT(1)', 'is_dttm': None, 'changed_by_fk': 6, 'table_columns_id': 1381}, {'changed_on': datetime.datetime(2020, 3, 11, 6, 22, 30, 509830), 'is_active': None, 'type': 'VARCHAR(4) CHARACTER SET utf8mb4', 'is_dttm': None, 'changed_by_fk': 6, 'table_columns_id': 1382}, {'changed_on': datetime.datetime(2020, 3, 11, 6, 22, 30, 509847), 'is_active': None, 'type': 'VARCHAR(12) CHARACTER SET utf8mb4', 'is_dttm': None, 'changed_by_fk': 6, 'table_columns_id': 1383})] (Background on this error at: http://sqlalche.me/e/9h9h)

Expected results

update colums

Actual results

error

Screenshots

image

How to reproduce the bug

  1. Edit Datasource
    image

  2. Click 'Sync from source'
    image

  3. Click 'Save '
    image

  4. See error
    image

Environment

  • superset version: Superset 0.999.0dev
  • python version: Python 3.6.9
  • node.js version: v10.19.0
  • npm version: 6.13.4

Checklist

@villebro
Copy link
Member

What database is this? the character encoding implies MySQL, but you seem to be using Psycopg2 which implies Postgres.

@glrvrl
Copy link
Author

glrvrl commented Mar 11, 2020

What database is this? the character encoding implies MySQL, but you seem to be using Psycopg2 which implies Postgres.

superset -> postgresql
data source -> mysql

@stale
Copy link

stale bot commented May 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label May 10, 2020
@stale stale bot closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

2 participants