How to query with doctrine dql the where in clause?

How do you take advantage of Hive bucketing in a SELECT query?

  • I have a hive table bucketed on userId, My select query contains userId in where clause but hive is doing full table scan. `hive.enforce.bucketing` is true Why don't hive take advantage of bucketing in such cases, is there any config to enable it?? Table Structure userId int, name int, address String, cell int, ...... ...... ...... ...... CLUSTERED BY  (userId) SORTED BY (userId) INTO 20 BUCKETS Select query select cell from <table> where userId=<userId>

  • Answer:

    How are you inserting data into this table? note that to take advantage of bucketing, you need to insert data using a hive query itself. If you manually put a text file at the location, bucketing wont work on that!

Manju Garg at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.