Skip to content

"Sync columns from source" broken for complex datasource names #16172

@michellethomas

Description

@michellethomas

Our virtual datasources get automatically created with complex names like Untitled Query 2 08/10/2021 0... to make them unique. The "Sync columns from source" feature seems to be broken because that name gets split up in the url datasource/external_metadata_by_name/table/Presto/null/Untitled%20Query%202%2008/10/2021%2009:15:26/.

It looks like maybe this happened when changing datasource metadata updating to pull using the name instead of the id (here). CC: @zhaoyongjie

Expected results

Datasource should update

Actual results

Error

How to reproduce the bug

  1. Create a virtual datasource with / in the name
  2. Try to update the datasource and "sync columns from source"

Environment

(please complete the following information):

  • superset version: master
  • python version: python --version
  • node.js version: node -v
  • any feature flags active:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

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

Metadata

Metadata

Assignees

Labels

#bugBug reportP1Priority item - Majortest:case

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions