Эх сурвалжийг харах

由于ck中的cityhash与标准版本有差异,hash函数修改为murmurhash3 64

路佳明 1 сар өмнө
parent
commit
183a322118

+ 2 - 2
cmd/consumer/biz/biz.go

@@ -259,8 +259,8 @@ func GenBiz2() {
 				)
 				SELECT
 					distinct
-					cityHash64(concat(SourceAppAlias, '|', SourceServiceName, '|', SourceSpanName, '|', SourceSpanKind)) AS SourceHash,
-					cityHash64(concat(TargetAppAlias, '|', TargetServiceName, '|', TargetSpanName, '|', TargetSpanKind)) AS TargetHash,
+					hex(murmurHash3_64(concat(SourceAppAlias, '|', SourceServiceName, '|', SourceSpanName, '|', SourceSpanKind))) AS SourceHash,
+					hex(murmurHash3_64(concat(TargetAppAlias, '|', TargetServiceName, '|', TargetSpanName, '|', TargetSpanKind))) AS TargetHash,
 					SourceAppAlias, SourceServiceName, SourceSpanName, SourceSpanName, SourceSpanKind, TargetAppAlias, TargetServiceName, TargetSpanName, TargetSpanKind,
 					IsRoot
 				FROM