Skip to content

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

@AnastasiaTamazlykar

Description

@AnastasiaTamazlykar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurestatus-triage_doneInitial triage done, will be further handled by the driver team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions