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

Support more FROM clause items #107

Open
2 tasks
abcd-ts opened this issue Oct 22, 2024 · 0 comments
Open
2 tasks

Support more FROM clause items #107

abcd-ts opened this issue Oct 22, 2024 · 0 comments

Comments

@abcd-ts
Copy link
Contributor

abcd-ts commented Oct 22, 2024

  • Support column aliases
  • Support WITH ORDINARITY

column aliases

input

select
  t.id,
  t.name
from
  tbl t(id, name);

error

Unexpected syntax error: ensure_kind(): excepted node is identifier, but actual (
  |
5 |   tbl t(id, name);
  |        ^ Appears as "(" node on the CST
  |

WITH ORDINARITY

input

SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);

error

Validation Error: different kind token: Errors have occurred near the following token
  |
1 | SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);
  |                              ^^^^
  |

references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant