1
0
Fork 0

Adding upstream version 11.4.5.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 15:47:04 +01:00
parent 36706608dc
commit 3e1362a879
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
131 changed files with 53004 additions and 37079 deletions

View file

@ -401,6 +401,16 @@ class TestExecutor(unittest.TestCase):
],
)
table1_view = exp.Select().select("id", "sub_type").from_("table1").subquery()
select_from_sub_query = exp.Select().select("id AS id_alias", "sub_type").from_(table1_view)
expression = exp.Select().select("*").from_("cte1").with_("cte1", as_=select_from_sub_query)
schema = {"table1": {"id": "str", "sub_type": "str"}}
executed = execute(expression, tables={t: [] for t in schema}, schema=schema)
self.assertEqual(executed.rows, [])
self.assertEqual(executed.columns, ("id_alias", "sub_type"))
def test_correlated_count(self):
tables = {
"parts": [{"pnum": 0, "qoh": 1}],