Dremio query forming

The query takes round about 2 min 20 sec

@vincent_mayer Same query when push down from Dremio is taking 19 minutes, Dremio does not do anything but sends the above push down into the back end DB. This may indicate a network condition. If the push down was not good, even running the push down on the source, would have been slow

@balaji.ramaswamy
okay, thanks!

Can you still elaborate on this?

  • What part of the system decides which data gets joined?
  • And what criteria does the system use to pick the right join?

I am curious :smiley:

@vincent_mayer This will be based on planner rules like row count estimates, I see the query I pasted which is what is sent to the backend DB is taking 2 minutes to run. But when the same query is sent from Dremio it takes longer. Is it possible to install the client like if this is Postgres then psql on the Dremio executor and run the same SQL, we can narrow it down then