Skip to content

Port tests in select.rs to sqllogictest #8213

Closed

Description

@alamb

Is your feature request related to a problem or challenge?

Part of #6195. We are trying to

  1. keep the DataFusion code base clean and easy to contribute to and modify
  2. Understand what features are covered and what are not

Part of doing so is having a single location for most test coverage so new tests can be added easily and people can follow the existing patterns easily

Describe the solution you'd like

Port the tests in https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/tests/sql/select.rs to
select.slt in https://github.com/apache/arrow-datafusion/tree/main/datafusion/sqllogictest/test_files

Note you can create catalogs and schema via SQL now

Catalogs: https://arrow.apache.org/datafusion/user-guide/sql/ddl.html#create-database
Schema: https://arrow.apache.org/datafusion/user-guide/sql/ddl.html#create-schema

Notes:

  1. Instructions for running sqllogitest are here: https://github.com/apache/arrow-datafusion/tree/main/datafusion/sqllogictest

Describe alternatives you've considered

No response

Additional context

I think these are good first issues as they teach the contributor about the DataFusion codebase and tests, as well as see the end user apis in practice.

Activity

  1. fansehep commented on Nov 20, 2023

    @fansehep

    i want to try this. 😄

  2. alamb commented on Jan 21, 2024

    @alamb
    ContributorAuthor

    This one I think is still a good first issue / maybe even covered by existing tests

  3. Tangruilin commented on Jan 23, 2024

    @Tangruilin
    Contributor

    @alamb maybe this can assign to me

  4. Tangruilin commented on Jan 23, 2024

    @Tangruilin
    Contributor

    I need some help,

    https://github.com/apache/arrow-datafusion/blob/31b9b48b08592b7d293f46e75707aad7dadd7cbc/datafusion/core/tests/sql/select.rs#L121

    Here it create a column with struct, but i do not know how to create it by sql

  5. Tangruilin commented on Jan 23, 2024

    @Tangruilin
    Contributor

    I need some help,
    https://github.com/apache/arrow-datafusion/blob/31b9b48b08592b7d293f46e75707aad7dadd7cbc/datafusion/core/tests/sql/select.rs#L121

    Here it create a column with struct, but i do not know how to create it by sql

    @alamb

  6. alamb commented on Jan 23, 2024

    @alamb
    ContributorAuthor
  7. simicd commented on Jan 24, 2024

    @simicd
    Contributor

    Hi both - @Tangruilin seems like we we're working independently on the topic 😮 I had raised two PRs previously but seems they remained unnoticed. Guess we should try to consolidate into a single PR, feel free to take over whatever you're missing currently from #8953 and #8939 and integrate into yours if that's ok with you as well.

    In #8939 you will find how I implemented the structs.

    image

  8. Tangruilin commented on Jan 25, 2024

    @Tangruilin
    Contributor

    Guess we should try to consolidate into a single PR,

    I have already sloved the problem of struct in my CR.
    It seems my CR have sloved this issue.

  9. Tangruilin commented on Jan 25, 2024

    @Tangruilin
    Contributor

    Hi both - @Tangruilin seems like we we're working independently on the topic 😮 I had raised two PRs previously but seems they remained unnoticed. Guess we should try to consolidate into a single PR, feel free to take over whatever you're missing currently from #8953 and #8939 and integrate into yours if that's ok with you as well.

    In #8939 you will find how I implemented the structs.

    image

    Maybe We can use my CR?
    Or do you have some suggestions?

  10. simicd commented on Jan 25, 2024

    @simicd
    Contributor

    Maybe We can use my CR?
    Or do you have some suggestions?

    Yes sounds good!

  11. alamb commented on Jan 25, 2024

    @alamb
    ContributorAuthor

    Yes, sorry -- I am backed up on reviews. I am hoping other committers can find more time to help. I am working to try and get the backlog down

  12. added a commit that references this issue on Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions