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

Using sequence as parameters #290

Open
freud14-tm opened this issue Nov 24, 2023 · 3 comments
Open

Using sequence as parameters #290

freud14-tm opened this issue Nov 24, 2023 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@freud14-tm
Copy link

freud14-tm commented Nov 24, 2023

I know that using sequence as parameters works using the legacy inline parameters. However, as mentioned there, it doesn't work with the native parameters. Is this somewhere on the roadmap to be implemented? If so, when?

@susodapop
Copy link
Contributor

Is this somewhere on the roadmap to be implemented?

Yes. For this to work, Databricks runtime needs to support ARRAY type SQL parameters. That feature is being designed right now.

If so, when?

I don't have an ETA to share at this time. But I've passed this specific use-case to that team for consideration.

@freud14-tm
Copy link
Author

Thank you very much @susodapop . Let me know of the development.

@susodapop
Copy link
Contributor

From what I understand, the likely syntax for this construct in the future would be like this:

SELECT field FROM table WHERE field in (SELECT * FROM explode(:array_param))

...although it would be nice to have a better shorthand for this.

@kravets-levko kravets-levko added enhancement New feature or request question Further information is requested labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants