8
mọi người. dưới đây là các tương tác với tổ ong:làm thế nào để chọn dữ liệu từ hive với phân vùng cụ thể?
hive> show partitions TABLENAME
pt=2012.07.28.08/is_complete=1
pt=2012.07.28.09/is_complete=1
pt=2012.07.28.10/is_complete=1
pt=2012.07.28.11/is_complete=1
hive> select * from TABLENAME where pt='2012.07.28.10/is_complete=1' limit 1;
OK
Time taken: 2.807 seconds
hive> select * from TABLENAME where pt='2012.07.28.10' limit 1;
OK
61806fd3-5535-42a1-9ca5-91676d0e783f 1.160.243.215.1343401203879.1 2012-07-28 23:36:37
Time taken: 3.8 seconds
hive>
Câu hỏi của tôi là tại sao lựa chọn đầu tiên không thể lấy dữ liệu?
có, bạn là đúng, nhờ :) – Tim