Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias for table function in FROM clause is wrongly handled #10273

Closed
xxchan opened this issue Jun 9, 2023 · 1 comment · Fixed by #10311
Closed

Alias for table function in FROM clause is wrongly handled #10273

xxchan opened this issue Jun 9, 2023 · 1 comment · Fixed by #10311
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@xxchan
Copy link
Member

xxchan commented Jun 9, 2023

Describe the bug

It's changed from func_name.func_name to alias.alias

xxchan@/tmp:postgres>  select * from generate_series(1,2);
+-----------------+
| generate_series |
|-----------------|
| 1               |
| 2               |
+-----------------+
SELECT 2
Time: 0.007s
xxchan@/tmp:postgres>  select * from generate_series(1,2) a;
+---+
| a |
|---|
| 1 |
| 2 |
+---+
SELECT 2

In RisingWave, it's changed to alias.func_name

dev=> select a.range from range(1,2) as a;
 range
-------
     1
(1 row)

#10134 (comment)

Error message/log

No response

To Reproduce

No response

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

@xxchan xxchan added the type/bug Something isn't working label Jun 9, 2023
@xxchan xxchan self-assigned this Jun 9, 2023
@github-actions github-actions bot added this to the release-0.20 milestone Jun 9, 2023
@xiangjinwu
Copy link
Contributor

#8829 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants