AshinGau opened a new pull request, #11156:
URL: https://github.com/apache/doris/pull/11156

   # Proposed changes
   
   Support pruning buckets for hive bucket table.
    
   ## Notes
   1. Spark currently does not populate bucketed output which is compatible 
with Hive, so spark bucket table is not supported in current implementation.
   2. Hive 3.0 introduced bucket version 2, but doris still uses hive 2.3.7 
which lacks the hash function of version 2, so I refer to the implementation of 
Trino and copy the hash function from hive.
   3. Current implementation doest not support the table with multiple bucketed 
columns, and only support `Equal` and `In` predicates.
   
   ## Profit
   Suppose `lineitem` table in tpch(sf=100) is bucketed by l_orderkey into 96 
buekts, when query:
   ```
   select count(*) from lineitem where l_orderkey = 1;
   ```
   Splits scanning reduced from 144 to 6.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (No)
   4. Has unit tests been added: (No)
   5. Has document been added or modified: (No)
   6. Does it need to update dependencies: (No)
   7. Are there any changes that cannot be rolled back: (No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to