Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.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_Hiveql - Fatal编程技术网

Hive 在配置单元中,如何查找两列之间的差异数?

Hive 在配置单元中,如何查找两列之间的差异数?,hive,hiveql,Hive,Hiveql,我试图在比较两列时找出差异的数量。 例如: 第1列:“ABCDEFGH!” 第2栏:“aBcDSfGh?” 差异数为6 我如何在蜂箱中实现这样的功能?您可以使用函数 选择levenshtein('ABCDEFGH!','aBcDSfGh?')工作 select levenshtein(column1, column2) from table

我试图在比较两列时找出差异的数量。 例如:

第1列:“ABCDEFGH!” 第2栏:“aBcDSfGh?”

差异数为6

我如何在蜂箱中实现这样的功能?

您可以使用函数

选择levenshtein('ABCDEFGH!','aBcDSfGh?')工作
select levenshtein(column1, column2) from table