📜  == 在蜂巢中 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:44.379000             🧑  作者: Mango

代码示例1
The= and == operators have the same functionality.
They are implemented by the exact same class.

system.registerGenericUDF("=", GenericUDFOPEqual.class);
system.registerGenericUDF("==", GenericUDFOPEqual.class);
FunctionRegistry.java

+----------+---------------------+----------------------------------------------------------------+
| Operator |    Operand types    |                          Description                           |
+----------+---------------------+----------------------------------------------------------------+
| A = B    | All primitive types | TRUE if expression A is equal to expression B otherwise FALSE. |
| A == B   | All primitive types | Synonym for the = operator.                                    |
+----------+---------------------+----------------------------------------------------------------+