paradedb / pg_analytics

DuckDB-powered analytics for Postgres
https://paradedb.com
PostgreSQL License
383 stars 15 forks source link

Integrate sqllogictest #144

Closed Weijun-H closed 4 days ago

Weijun-H commented 1 month ago

What feature are you requesting?

Integrate SQLLogicTest to streamline FDW testing:

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 commented 1 month ago

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

philippemnoel commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

/take

philippemnoel commented 1 month ago

/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 commented 1 month ago

@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 commented 1 month ago

@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 https://github.com/paradedb/pg_analytics/issues/160

philippemnoel commented 4 days ago

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