Hive 选择配置单元中特定位等于零的行
我想在配置单元中选择int列(“flags”)的位10-12等于0的所有行 我将编写什么类型的查询来执行此操作?您可以尝试Hive 选择配置单元中特定位等于零的行,hive,bits,Hive,Bits,我想在配置单元中选择int列(“flags”)的位10-12等于0的所有行 我将编写什么类型的查询来执行此操作?您可以尝试shifleet()和按位和: where (intcol & shiftleft(1, 10)) = 0 and (intcol & shiftleft(1, 11)) = 0 and (intcol & shiftleft(1, 12)) = 0 您可以尝试shifleet()和按位和: where (intcol &am
shifleet()
和按位和:
where (intcol & shiftleft(1, 10)) = 0 and
(intcol & shiftleft(1, 11)) = 0 and
(intcol & shiftleft(1, 12)) = 0
您可以尝试shifleet()
和按位和:
where (intcol & shiftleft(1, 10)) = 0 and
(intcol & shiftleft(1, 11)) = 0 and
(intcol & shiftleft(1, 12)) = 0
我收到一条消息说:无效函数'shiftleft'@OneSolitaryNoob。我收到一条消息说:无效函数'shiftleft'@OneSolitaryNoob。