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

Add Implicit Casting from List to Array #3375

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

mxwli
Copy link
Collaborator

@mxwli mxwli commented Apr 24, 2024

Progress on #3248

We've decided not to resolve list literals to arrays, since it's much simpler to just support list -> array implicit casting. As a consequence, implicit casts are now no longer guaranteed to always work.

The mentioned array_cosine_similarity(a.vector, [6.0, 25.0]) call still doesn't work due to a binding error. The corresponding tests are disabled until this is fixed.

@mxwli mxwli requested a review from andyfengHKU April 24, 2024 19:03
Copy link
Contributor

@andyfengHKU andyfengHKU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

add tests

add castcost

add cast cost for list->array and array->list

skip failed test
@mxwli mxwli merged commit b491af2 into master Apr 24, 2024
18 checks passed
@mxwli mxwli deleted the listarrayimplicitcast branch April 24, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants