From b8663e96b7739deaa4bcb0f356cde1c607e88819 Mon Sep 17 00:00:00 2001 From: cccs-nik <68961854+cccs-nik@users.noreply.github.com> Date: Mon, 6 Feb 2023 11:24:27 -0500 Subject: [PATCH] CLDN-1710 including schema in search columns for datasets api (#253) --- superset/datasets/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/datasets/api.py b/superset/datasets/api.py index eca5dce1f161a..c582788ebcfab 100644 --- a/superset/datasets/api.py +++ b/superset/datasets/api.py @@ -204,7 +204,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): "sql": [DatasetIsNullOrEmptyFilter], "id": [DatasetCertifiedFilter], } - search_columns = ["id", "database", "owners", "sql", "table_name"] + search_columns = ["id", "database", "owners", "schema", "sql", "table_name"] filter_rel_fields = {"database": [["id", DatabaseFilter, lambda: []]]} allowed_rel_fields = {"database", "owners"} allowed_distinct_fields = {"schema"}