mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
[Bugfix] Response header and response mismatch on explore result from sqllab (#7907)
* fix(sql-lab explore): fixed response data and header type to be aligned * fix(sql-lab explore): fixed test error caused by incorrect test at master * fix(sql-lab explore): reformatted * fix(sql-lab explore): removed unused import
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from superset import db
|
||||
from superset.connectors.sqla.models import SqlaTable, TableColumn
|
||||
from superset.db_engine_specs.druid import DruidEngineSpec
|
||||
from superset.utils.core import get_main_database
|
||||
@@ -44,7 +43,7 @@ class DatabaseModelTestCase(SupersetTestCase):
|
||||
|
||||
def test_cache_key_wrapper(self):
|
||||
query = "SELECT '{{ cache_key_wrapper('user_1') }}' as user"
|
||||
table = SqlaTable(sql=query, database=get_main_database(db.session))
|
||||
table = SqlaTable(sql=query, database=get_main_database())
|
||||
query_obj = {
|
||||
"granularity": None,
|
||||
"from_dttm": None,
|
||||
|
||||
Reference in New Issue
Block a user