Skip to content

Port tests in explain.rs to sqllogictests #6297

Closed

Description

@alamb

Is your feature request related to a problem or challenge?

Part of #6195. We are trying to keep the DataFusion code base clean and easy to contribute to and modify. 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/explain.rs to explain.slt in https://github.com/apache/arrow-datafusion/tree/main/datafusion/core/tests/sqllogictests/test_files

For this particular test, I think the best thing to do is to test EXPLAIN VERBOSE on a simple explain plan which will show the different passes

Notes:

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

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. alamb commented on May 9, 2023

    @alamb
    ContributorAuthor

    This is a very small test to port

  2. changed the title [-]Port tests in `explain.rs` to sqllogictest[/-] [+]Port tests in `explain.rs` to context.rs[/+] on May 9, 2023
  3. changed the title [-]Port tests in `explain.rs` to context.rs[/-] [+]Port tests in `explain.rs` to sqllogictests[/+] on May 9, 2023
  4. my-vegetable-has-exploded commented on May 10, 2023

    @my-vegetable-has-exploded
    Contributor

    I'd like to try it.

  5. alamb commented on May 10, 2023

    @alamb
    ContributorAuthor

    Thank you @my-vegetable-has-exploded (great github tag btw)

  6. my-vegetable-has-exploded commented on May 11, 2023

    @my-vegetable-has-exploded
    Contributor

    my-vegetable-has-exploded@ae8ff25
    Does this commit meet the requirements? Its output is a bit tedious.
    @alamb

  7. alamb commented on May 12, 2023

    @alamb
    ContributorAuthor

    Does this commit meet the requirements? Its output is a bit tedious.

    Yes I think so -- thank you @my-vegetable-has-exploded

    I know the output is tedious but the upside is that it is east to update / maintain as sqllogictest style tests

  8. my-vegetable-has-exploded commented on May 12, 2023

    @my-vegetable-has-exploded
    Contributor

    Get it!
    Thanks, @alamb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions