redash icon indicating copy to clipboard operation
redash copied to clipboard

Adding Apache Pinot Query Runner

Open xiangfu0 opened this issue 2 years ago • 13 comments

What type of PR is this?

  • [ ] Refactor
  • [ ] Feature
  • [ ] Bug Fix
  • [X] New Query Runner (Data Source)
  • [ ] New Alert Destination
  • [ ] Other

Description

Adding Apache Pinot query runner.

How is this tested?

  • [ ] Unit tests (pytest, jest)
  • [ ] E2E Tests (Cypress)
  • [X] Manually
  • [ ] N/A

1. Start redash docker-compose

docker-compose up -d && docker-compose run --rm server create_db && docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests"

2. Start Pinot Quickstart

docker run \
    --name pinot-quickstart \
    --network redash_default \
    -p 9000:9000 -d \
    apachepinot/pinot:latest QuickStart \
    -type batch

This docker run create a Pinot cluster with controller at http://pinot-quickstart:9000 and broker athttp://pinot-quickstart:8000

3. Create data source:

image

4. Query Builder

image

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

xiangfu0 avatar Jul 18 '22 23:07 xiangfu0

Just realized the duplicated effort https://github.com/getredash/redash/pull/5724

xiangfu0 avatar Jul 19 '22 00:07 xiangfu0

I'm not seeing any movement on #5724 from that contributor. So I'm happy to move forward with this one assuming we can incorporate the feedback from the two previous attempts. The big question was around data type mapping, as I recall.

susodapop avatar Jul 19 '22 00:07 susodapop

Adding more type support: image

xiangfu0 avatar Jul 19 '22 08:07 xiangfu0

Also tested with auth-zk pinot quickstart:

docker run --name pinot-quickstart --network redash_default \
    -p 9000:9000 -p 8000:8000  -d\
    apachepinot/pinot:latest QuickStart \
    -type AUTH-ZK

With Data Source image

xiangfu0 avatar Jul 19 '22 08:07 xiangfu0

Please let me know when you feel this is ready for review 👌

susodapop avatar Jul 19 '22 19:07 susodapop

Please let me know when you feel this is ready for review 👌

Yes, please. Logic wise it's pretty much there.

xiangfu0 avatar Jul 19 '22 20:07 xiangfu0

I've tried to capture the feedbacks for type mapping from #5724 and #5446

xiangfu0 avatar Jul 19 '22 20:07 xiangfu0

@susodapop can you start reviewing this PR, thanks!

xiangfu0 avatar Aug 01 '22 19:08 xiangfu0

Thanks for the ping! I will review it this week.

susodapop avatar Aug 01 '22 19:08 susodapop

Thanks for the ping! I will review it this week.

Kindly bump up the thread :p

xiangfu0 avatar Aug 17 '22 23:08 xiangfu0

Guess I forgot to @susodapop last week :p

xiangfu0 avatar Aug 23 '22 21:08 xiangfu0

Guess I forgot to @susodapop last week :p

I appreciate you pinging me so reliably. I've been hard at work on a couple other open source projects for the past month. But I swear I haven't forgotten about you :)

susodapop avatar Aug 24 '22 13:08 susodapop

Guess I forgot to @susodapop last week :p

I appreciate you pinging me so reliably. I've been hard at work on a couple other open source projects for the past month. But I swear I haven't forgotten about you :)

Thanks for your comments!

Seems the CI cannot pass due to some visual change, can you help check what's going on?

xiangfu0 avatar Sep 08 '22 08:09 xiangfu0

@susodapop another round :p

xiangfu0 avatar Sep 24 '22 09:09 xiangfu0

Seems like the CI passed! @susodapop can you go through this again ?

xiangfu0 avatar Sep 25 '22 09:09 xiangfu0

@susodapop ping :p

xiangfu0 avatar Sep 28 '22 06:09 xiangfu0

kindly Friday ping 🔢 @susodapop

xiangfu0 avatar Sep 30 '22 19:09 xiangfu0

Thank you for the pings :) I have been out sick this week. Will review ASAP.

susodapop avatar Sep 30 '22 19:09 susodapop

Thank you for the pings :) I have been out sick this week. Will review ASAP.

Oh, hope you get well soon and take your time!

xiangfu0 avatar Sep 30 '22 19:09 xiangfu0

Merged. Thank you for your patience with this, @xiangfu0 !

arikfr avatar Oct 07 '22 06:10 arikfr

Many thanks @arikfr and @susodapop !! Great team work!

xiangfu0 avatar Oct 07 '22 18:10 xiangfu0