Skip to content

Snowflake support does not include list features #2280

Closed

Description

@adchia

Expected Behavior

Snowflake offline store works with list features

Current Behavior

Right now Snowflake produces errors when using list features. This isn't caught by tests because of this skip with the aws provider: https://github.com/feast-dev/feast/blob/master/sdk/python/tests/integration/registration/test_universal_types.py#L39

Activity

  1. adchia commented on Feb 3, 2022

    @adchia
    CollaboratorAuthor
  2. sfc-gh-madkins commented on Feb 19, 2022

    @sfc-gh-madkins
    Collaborator

    @adchia @woop here is the docs related to semi-structured data in Snowflake: https://docs.snowflake.com/en/sql-reference/data-types-semistructured.html#array

    Arrays for list feature types are possible in Snowflake, but there is no enforcement of data type within the array, its stored as type VARIANT, where VARIANT, can store values of any other type, including OBJECT and ARRAY, up to a maximum size of 16 MB. Snowflake does not currently support fixed-size arrays or arrays of elements of a specific non-VARIANT type.

    Im curious to your initial thoughts on this. We can certainly test an array if it complies with a certain data type that is supported or throw an error. If it does then execellent, if not we throw an error to remove the feature

  3. stale commented on Jun 19, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. added
    wontfix
    on Jun 19, 2022
  5. reopened this on Jul 12, 2022
  6. achals commented on Jul 13, 2022

    @achals
    Member

    I think we can take the approach described by @sfc-gh-madkins

  7. removed
    wontfix
    on Jul 13, 2022
  8. added
    Community Contribution Needed
    on Aug 3, 2022
  9. 4 remaining items

  10. sfc-gh-madkins commented on Dec 16, 2022

    @sfc-gh-madkins
    Collaborator

    bump

  11. removed
    wontfix
    on Dec 16, 2022
  12. stale commented on Apr 26, 2023

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  13. added
    wontfix
    on Apr 26, 2023
  14. sfc-gh-madkins commented on Apr 26, 2023

    @sfc-gh-madkins
    Collaborator
  15. removed
    wontfix
    on Apr 26, 2023
  16. JohnLemmonMedely commented on Sep 5, 2023

    @JohnLemmonMedely
    Contributor

    Looks like we'll need this for our implementation so I'll be taking a look at implementing this in our sprint starting tomorrow.

  17. sfc-gh-madkins commented on Sep 5, 2023

    @sfc-gh-madkins
    Collaborator

    @JohnLemmonMedely I am afraid snowflake does not support structured types on the server side. All semistructured types are currently returns as strings. We are working to support this in the next couple of quarters.

  18. JohnLemmonMedely commented on Sep 5, 2023

    @JohnLemmonMedely
    Contributor

    @sfc-gh-madkins I was planning on using the method you suggested earlier and attempt to cast them to what they need to be and throwing errors when we can't. It'll be better to guarantee data types via Snowflake but until that's possible I can enforce those guarantees myself via the data pipeline.

    We can certainly test an array if it complies with a certain data type that is supported or throw an error. If it does then execellent, if not we throw an error to remove the feature

  19. sfc-gh-madkins commented on Sep 5, 2023

    @sfc-gh-madkins
    Collaborator
  20. JohnLemmonMedely commented on Dec 8, 2023

    @JohnLemmonMedely
    Contributor

    @sfc-gh-madkins I had to pause my work on the PR but we were able to use my fork in production. I'm trying to see if it makes sense at this point to get the PR ready to merge or if I should just wait on Snowflake adding structured types instead. Is that still on the Roadmap to add early next year?

  21. sfc-gh-madkins commented on Dec 8, 2023

    @sfc-gh-madkins
    Collaborator
  22. JohnLemmonMedely commented on Dec 15, 2023

    @JohnLemmonMedely
    Contributor

    @sfc-gh-madkins just following up on if Snowflake still plans on supporting structured types soon. I just need to know if work will start on it over the next quarter or not.

  23. sfc-gh-madkins commented on Dec 16, 2023

    @sfc-gh-madkins
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Community Contribution Neededkind/bugkind/featurepriority/p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions