Open AnastasiaTamazlykar opened 2 days ago
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)
sql.func.array_agg(col)[0]
sql.func.get(sql.func.array_agg(col),0)
but for example postgres client supports bracket, so would be nice for easiness
snowflake-connector-python
thank you for the enhancement suggestion; the team will consider. Also if you have the possibility, a PR is also welcome for the implementation!
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]
usesql.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