superset icon indicating copy to clipboard operation
superset copied to clipboard

Unknown column 'created_by' in 'order clause'

Open luciuschina opened this issue 9 years ago • 2 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [X] I have checked the superset logs for python stacktraces and included it here as text if any
  • [X] I have reproduced the issue with at least the latest released version of superset
  • [X] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.18.5

Meta database

MySQL

Expected results

No error

Actual results

Has an error

Steps to reproduce

1 2 The error is: _OperationalError: (mysql_exceptions.OperationalError) (1054, "Unknown column 'created_by' in 'order clause'") [SQL: u'SELECT dashboards.created_on AS dashboards_created_on, dashboards.changed_on AS dashboards_changed_on, dashboards.id AS dashboards_id, dashboards.dashboard_title AS dashboards_dashboard_title, dashboards.position_json AS dashboards_position_json, dashboards.description AS dashboards_description, dashboards.css AS dashboards_css, dashboards.json_metadata AS dashboards_json_metadata, dashboards.slug AS dashboards_slug, dashboards.changed_by_fk AS dashboards_changed_by_fk, dashboards.created_by_fk AS dashboards_created_by_fk \nFROM dashboards ORDER BY created_by asc \n LIMIT %s'] [parameters: (100,)]

My tested result : "ORDER BY created_on" is work。 “dbs” table has “created_on” field instead of “created_by”.

luciuschina avatar Jul 28 '17 07:07 luciuschina

Looks like a duplicate of #3074, please close.

xrmx avatar Jul 28 '17 07:07 xrmx

Yes,the same issue

luciuschina avatar Jul 28 '17 08:07 luciuschina