Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hive bucketing
Labels:
- Labels:
-
Apache Hive
New Contributor
Created ‎06-06-2021 01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have 4 buckets in a hive table
is it possible to pull the records from 2nd and 3rd bucket at the same time
1 REPLY 1
Master Collaborator
Created ‎06-09-2021 09:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you try with below command:
select * from bucketing_table tablesample(bucket n out of y on clustered_criteria_column);
n => nth bucket
y => total no. of buckets
