[英]Is AND clause supported in hive
我試圖在HIVE中執行以下查詢。
select plc
from processed p
WHERE p.day=26
AND p.time_id = 41;
但是,我沒有結果。 但是,執行以下查詢后,我得到了有效的結果
select plc from processed p WHERE p.day=26
我已經檢查了我的表,它包含對應於day = 26 and time_id = 41
。 Hive不支持多個AND子句嗎?
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select顯示Hive確實支持AND子句。 特別是,他們的WHERE子句的第一個示例包括AND:
WHERE Clause
The WHERE condition is a boolean expression. For example, the following query returns only those sales records which have an amount greater than 10 from the US region. Hive supports a number of operators and UDFs in the WHERE clause:
SELECT * FROM sales WHERE amount > 10 AND region = "US"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.