Skip to content

WITH ORDINALITY #491

Answered by lovasoa
ArianYN asked this question in Q&A
Jul 8, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Thanks for the report ! I opened an issue upstream in order to track and fix the bug in our sql parser: apache/datafusion-sqlparser-rs#1336

In the meantime, you can use row_number() to emulate the functionality:

join lateral (
  select value, row_number() over () as ord
  from jsonb_array_elements(j1.pnet_nodes)
) as filtered_e on true
where ord>1

demo

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ArianYN
Comment options

@lovasoa
Comment options

Answer selected by ArianYN
@ArianYN
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants