<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/yql/essentials/tests/sql/suites/select_pg, branch main</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=main</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2025-12-30T08:41:29Z</updated>
<entry>
<title>YQL-20436: Fix asterisk subquery on SqlSelect</title>
<updated>2025-12-30T08:41:29Z</updated>
<author>
<name>vitya-smirnov</name>
<email>vitya-smirnov@yandex-team.com</email>
</author>
<published>2025-12-30T08:25:02Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f76cd558570b1df1ba9b3f0779758b22fbd3c064'/>
<id>urn:sha1:f76cd558570b1df1ba9b3f0779758b22fbd3c064</id>
<content type='text'>
I explored the following problem:

```yql
PRAGMA YqlSelect = 'force';

/* BAD */ SELECT (SELECT * FROM (SELECT 1 AS a) AS x);

/* OK  */ SELECT (SELECT * FROM (SELECT 1 AS a) AS x);
          FROM (VALUES (1)) AS y (b);
```

There was a fatal error of not found qualified column name in a list of
unqualified column names, or vice versa. The condition for qualification
was dependent on a fact of SubLink type annotation. But initially
columns are qualified depending on existence of an external input.

Actually it seems that the existence of an external input is a right
condition for column qualification.
commit_hash:d03011a0f70ee94bf05418326cd4b6c655c5999f
</content>
</entry>
</feed>
