环境:
Hive: 2.7.7
Oracle SQL Developer
Cloudera JDBC Driver
案例:
select object_id,schema_id
, object_id + schema_id
, object_id-schema_id
,object_id*schema_id
,object_id/schema_id
,object_id % schema_id
, object_id | schema_id
--, object_id & schema_id
, object_id ^ schema_id
, ~schema_id
from tblobj2
limit 10
异常:
- 在运行被注释掉的表达式 object_id & schema_id 时,出现输入 schema_id 的对话框:
解决方案:
select object_id,schema_id
, object_id + schema_id
, object_id-schema_id
,object_id*schema_id
,object_id/schema_id
,object_id % schema_id
, object_id | schema_id
, object_id & (schema_id)
, object_id ^ schema_id
, ~schema_id
from tblobj2
limit 10
解决问题的关键在于 object_id & (schema_id)