Upgrade Pinot Connector to use 0.10.0 libraries#11475
Conversation
df78150 to
1120354
Compare
hashhar
left a comment
There was a problem hiding this comment.
Last commit only since others are reviewed in different PRs.
A question about compatibility.
There was a problem hiding this comment.
Do we have something like a smoke test for older version still? Or do we again plan to drop support?
There was a problem hiding this comment.
pinot keeps compatible support for the previous minor version upgrade. So typically 0.10.0 clients should work with 0.9.3 and 0.10.0 pinot. 0.8.0 pinot is not guaranteed.
There was a problem hiding this comment.
Thanks.
@elonazoulay Can you add two subclasses to AbstractPinotIntegrationSmokeTest - one that tests 0.9 and other that tests 0.10.
That way we can maintain tests and know the range of versions that the connector works with.
A similar idea like we have in some JDBC connectors.
26b42b3 to
f0c3d48
Compare
hashhar
left a comment
There was a problem hiding this comment.
Looks good, please squash the commits now.
Would be good to have tests for both 0.9 and 0.10 now because it seems we can support both now.
059f0cb to
b179081
Compare
plugin/trino-pinot/pom.xml
Outdated
There was a problem hiding this comment.
trino/plugin/trino-sqlserver/pom.xml
Lines 19 to 25 in 513d193
is the canonical fix for now until Surefire is updated.
There was a problem hiding this comment.
This worked, thanks! I used instances, classes had the same errors that methods had. Let me know if it's ok to squash the commits.
hashhar
left a comment
There was a problem hiding this comment.
Looks good % comment.
I'm not sure if we need 2 versions for the "additional" tests like secured vs without auth. A single test class that exercises most things on 2 versions is sufficient. Rest can be tested with just the older version (since things like auth are generally not version sensitive).
|
@ebyhr Do you want to take a look at tests? |
|
Updated, lmk when you have a chance. |
There was a problem hiding this comment.
In other connectors the default is the oldest version. I think it makes more sense since generally version updates add things so we should have wider coverage for older versions.
There was a problem hiding this comment.
Sounds good, I also renamed TestPinotWithoutAuthenticationIntegrationSmokeTestPreviousVersion to TestPinotWithoutAuthenticationIntegrationSmokeTestLatestVersion.
hashhar
left a comment
There was a problem hiding this comment.
LGTM % comment.
Sorry for the delay here.
|
Also, please squash the commits now - seems like a single logical change. |
|
Thanks @hashhar, appreciate all the time you spent reviewing this! lmk if the test name change and default version change look good. |
hashhar
left a comment
There was a problem hiding this comment.
Can you also update pinot.rst to fix the "Requirements" section. It still lists 0.8.0 as the minimum supported version which doesn't work anymore AFAIK? Needs to be bumped to 0.9.3?
|
Updated - pinot-0.8.0 will work also, but there are a few things which didn't work in pinot-0.8.0 that now work (related to column alias issues) - should I put a note that pinot-0.8.0 will mostly work or just leave it as is? |
|
Let's leave as it is in that case. Since we don't test 0.8.0 it doesn't make sense to make claims about it. It's kinda implied, everything outside the specified range may or may not work. |
Description
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: