Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hive 选择配置单元中特定位等于零的行_Hive_Bits - Fatal编程技术网

Hive 选择配置单元中特定位等于零的行

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

我想在配置单元中选择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 & shiftleft(1, 10)) = 0 and
      (intcol & shiftleft(1, 11)) = 0 and
      (intcol & shiftleft(1, 12)) = 0

我收到一条消息说:无效函数'shiftleft'@OneSolitaryNoob。我收到一条消息说:无效函数'shiftleft'@OneSolitaryNoob。