Преглед на файлове

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

路佳明 преди 1 месец
родител
ревизия
183a322118
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      cmd/consumer/biz/biz.go

+ 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