- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Can Cost Based Optimization be configured per session or query in Hive?
- Labels:
-
Apache Hive
Created on ‎04-28-2017 02:52 PM - edited ‎09-16-2022 04:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎04-28-2017 09:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, CBO is a client side property. You can disable at the beginning of query by specifying:
set hive.cbo.enable=false;
Created ‎04-28-2017 09:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, CBO is a client side property. You can disable at the beginning of query by specifying:
set hive.cbo.enable=false;
Created ‎05-03-2017 08:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
