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

Integrate sqllogictest #144

Closed
2 tasks
Weijun-H opened this issue Oct 1, 2024 · 8 comments
Closed
2 tasks

Integrate sqllogictest #144

Weijun-H opened this issue Oct 1, 2024 · 8 comments
Assignees
Labels
ci/tests Issue related to our CI and/or testing frameworks feature New feature or request priority-low Low priority issue

Comments

@Weijun-H
Copy link
Contributor

Weijun-H commented Oct 1, 2024

What feature are you requesting?

Integrate SQLLogicTest to streamline FDW testing:

  • Provides a simple, declarative syntax for SQL test cases
  • Supports complex query verification
  • Enables easy test case addition and maintenance

Why are you requesting this feature?

While working on #132, I encountered difficulties writing tests related to Foreign Data Wrappers (FDW). The current test suite contains significant code duplication for table initialization, making it cumbersome to add new tests.
This feature could benefit pg_search and pg_analytics.

What is your proposed implementation for this feature?

After some consideration, it would be more effective to break down this issue into smaller tasks.

Full Name:

Weijun Huang

Affiliation:

Individual

@Weijun-H Weijun-H added the feature New feature or request label Oct 1, 2024
@Weijun-H
Copy link
Contributor Author

Weijun-H commented Oct 1, 2024

If this ticket sounds good to you, I could try to work on it.

@philippemnoel philippemnoel added priority-medium Medium priority issue ci/tests Issue related to our CI and/or testing frameworks labels Oct 2, 2024
@philippemnoel
Copy link
Collaborator

If this ticket sounds good to you, I could try to work on it.

That feature sounds very useful yes. If we can improve the way we write tests it would be great.

Where do you see it be most useful for pg_search?

@Weijun-H
Copy link
Contributor Author

Weijun-H commented Oct 3, 2024

If this ticket sounds good to you, I could try to work on it.

That feature sounds very useful yes. If we can improve the way we write tests it would be great.

Where do you see it be most useful for pg_search?

Because this feature could change the existing most of tests to .slt not only pg_analytics but also pg_search. It makes tests more maintainable and serves as clear documentation. For pg_search, this approach would standardize the testing approach, potentially improve test execution speed, and make it easier to add comprehensive test cases in the long term.

@Weijun-H
Copy link
Contributor Author

Weijun-H commented Oct 4, 2024

/take

@philippemnoel
Copy link
Collaborator

/take

@Weijun-H. I just reviewed #152. I am unclear on whether we want this. I would suggest you make a very small sqllogictest for pg_search and PR it in that repo. The rest of the team can weigh in. Based on what they say, we can decide whether to do it here/there.

@philippemnoel philippemnoel added priority-low Low priority issue and removed priority-medium Medium priority issue labels Oct 13, 2024
@philippemnoel
Copy link
Collaborator

@Weijun-H. We moved all our tests in a separate crate in paradedb/paradedb. I guess we could do the same here. Imitating the same approach would be optimal

@Weijun-H
Copy link
Contributor Author

Weijun-H commented Oct 17, 2024

@Weijun-H. We moved all our tests in a separate crate in paradedb/paradedb. I guess we could do the same here. Imitating the same approach would be optimal

I think that deserves a separate ticket #160

@philippemnoel philippemnoel removed their assignment Oct 20, 2024
@philippemnoel
Copy link
Collaborator

At this time, we've decided this is not a priority.

@philippemnoel philippemnoel closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/tests Issue related to our CI and/or testing frameworks feature New feature or request priority-low Low priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants