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

SNOW-1818887: having visit_getitem_binary in SnowflakeCompiler would help to retrieve specific element of array #546

Open
AnastasiaTamazlykar opened this issue Nov 20, 2024 · 1 comment
Labels
feature status-triage_done Initial triage done, will be further handled by the driver team

Comments

@AnastasiaTamazlykar
Copy link

AnastasiaTamazlykar commented Nov 20, 2024

What is the current behavior?

there is alternative
https://docs.snowflake.com/en/sql-reference/functions/get
instead of sql.func.array_agg(col)[0] use sql.func.get(sql.func.array_agg(col),0)

but for example postgres client supports bracket, so would be nice for easiness

What is the desired behavior?

How would this improve snowflake-connector-python?

References, Other Background

@github-actions github-actions bot changed the title having visit_getitem_binary in SnowflakeCompiler would help to retrieve specific element of array SNOW-1818887: having visit_getitem_binary in SnowflakeCompiler would help to retrieve specific element of array Nov 20, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka added the status-triage_done Initial triage done, will be further handled by the driver team label Nov 22, 2024
@sfc-gh-dszmolka
Copy link
Contributor

thank you for the enhancement suggestion; the team will consider. Also if you have the possibility, a PR is also welcome for the implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

2 participants