From 0c10b16a97543f845be5ab125c9ed6867cfb9607 Mon Sep 17 00:00:00 2001 From: wyl4pd <164864310+wyl4pd@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:39:05 +0800 Subject: [PATCH] fix: discrete signature use sign int (#3896) --- cases/query/feature_signature_query.yaml | 8 ++++---- hybridse/src/udf/default_defs/feature_signature_def.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cases/query/feature_signature_query.yaml b/cases/query/feature_signature_query.yaml index 5abd3649768..1cfbd9b229a 100644 --- a/cases/query/feature_signature_query.yaml +++ b/cases/query/feature_signature_query.yaml @@ -439,11 +439,11 @@ cases: schema: instance:string order: instance data: | - 1 1:0 13120140547090569137:1 2:1 40:1 140:1 13120140547090569137:1 1203:1 + 1 1:0 -5326603526618982479:1 2:1 40:1 140:1 -5326603526618982479:1 1203:1 2 1:0 5665509553878826940:1 2:2 43:1 143:1 5665509553878826940:1 1203:2 - 3 1:1 11991475895402502921:1 2:3 24:1 124:1 11991475895402502921:1 1203:3 - 4 1:1 11991475895402502921:1 2:4 24:1 124:1 11991475895402502921:1 1203:4 - 5 1:2 13120140547090569137:1 2:5 40:1 140:1 13120140547090569137:1 1203:5 + 3 1:1 -6455268178307048695:1 2:3 24:1 124:1 -6455268178307048695:1 1203:3 + 4 1:1 -6455268178307048695:1 2:4 24:1 124:1 -6455268178307048695:1 1203:4 + 5 1:2 -5326603526618982479:1 2:5 40:1 140:1 -5326603526618982479:1 1203:5 - id: 21 desc: csv example mode: procedure-unsupport diff --git a/hybridse/src/udf/default_defs/feature_signature_def.cc b/hybridse/src/udf/default_defs/feature_signature_def.cc index 7d53b91ee72..3f9586c7f61 100644 --- a/hybridse/src/udf/default_defs/feature_signature_def.cc +++ b/hybridse/src/udf/default_defs/feature_signature_def.cc @@ -181,7 +181,7 @@ std::string format_continuous(T value) { return std::to_string(value); } -std::string format_discrete(uint64_t value) { +std::string format_discrete(int64_t value) { return std::to_string(value); }