Hey folks, is there a locally runnable integration...
# pinot-dev
e
Hey folks, is there a locally runnable integration test for testing StarTree index?
x
StarTreeClusterIntegrationTest?
e
Ran into some dependency issues, but good to know that’s the right one. I’ll battle a bit with the deps, shouldn’t be too bad
x
are you using IDE?
e
intelliJ, yep
x
I’m using intelilj and the integration test runs pretty smooth
e
Screenshot 2023-10-30 at 16.23.11.png
(note that I haven’t altered, nor am I trying to directly test, ProtoBufRecordExtractor)
x
might be due to missing some plugin which auto build the thrift
Or you can do mvn clean install, then click on the targets/generated/xxx then right click the directory, mark it as generated source
image.png
image.png
e
1. do you know what the plugin might be called RE autobuilding Thrift? 2. I’ll try mvn build, as I don’t currently see
generated_sources
under my
target
directory
I’ve been building like so:
Copy code
mvn -T 1.5C clean install package -DskipTests -Pbin-dist
I do have, for example:
Copy code
build/plugins/pinot-input-format/pinot-protobuf/pinot-protobuf-1.1.0-SNAPSHOT-shaded.jar
x
Ah, those are proto files, so should be some proto plugin I think
image.png
This is the one I’m using
It will generate corresponding java files from proto
e
thanks, installed 👍 I’ll let you know what happens when compilation is done 😛
x
cool!
e
I appreciate the help!
x
another way is to run
mvn test -Dtest=org.apache.pinot.integration.tests.OfflineClusterIntegrationTest
but you cannot really do debug mode from IDE
e
thanks! Ya, true, very nice to have the debugger connected from IDE. Still, good to have as an option!
👍 1
I’m hopeful! I now have those generated sources, so that’s a good sign
it's working
thanks Xiang! Saved me loads of time 😄
x
Cool!
e
I could have sworn I also saw unit tests that confirm invocation counts of startree operators. Does that sound familiar? If so, do you know the name of the test file(s)?
it was
MultiNodesOfflineClusterIntegrationTest>OfflineClusterIntegrationTest.testStarTreeTriggering
x
👍