Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Can Cost Based Optimization be configured per session or query in Hive?

avatar
New Member

Hello

I was wondering if we can use different settings for different types of queries in Hive regarding the cost based optimization.

For light interactive queries, CBO can be slower because the time of calculating the execution plan may be longer than the execution time itself.

For complex analytical queries is better to enable CBO.

Can CBO be enabled/disabled per query o Hive session basis?

Thanks

1 ACCEPTED SOLUTION

avatar

Yes, CBO is a client side property. You can disable at the beginning of query by specifying:

set hive.cbo.enable=false;

View solution in original post

2 REPLIES 2

avatar

Yes, CBO is a client side property. You can disable at the beginning of query by specifying:

set hive.cbo.enable=false;

avatar
New Member

Thank you!