mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
fix(mssql): support cte in virtual tables (#18567)
* Fix for handling regular CTE queries with MSSQL,#8074 * Moved the get_cte_query function from mssql.py to base.py for using irrespetcive of dbengine * Fix for handling regular CTE queries with MSSQL,#8074 * Moved the get_cte_query function from mssql.py to base.py for using irrespetcive of dbengine * Unit test added for the db engine CTE SQL parsing. Unit test added for the db engine CTE SQL parsing. Removed additional spaces from the CTE parsing SQL generation. * implement in sqla model * lint + cleanup Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
This commit is contained in:
@@ -984,7 +984,7 @@ class TestCore(SupersetTestCase):
|
||||
sql=commented_query,
|
||||
database=get_example_database(),
|
||||
)
|
||||
rendered_query = str(table.get_from_clause())
|
||||
rendered_query = str(table.get_from_clause()[0])
|
||||
self.assertEqual(clean_query, rendered_query)
|
||||
|
||||
def test_slice_payload_no_datasource(self):
|
||||
|
||||
Reference in New Issue
Block a user