Skip to content

Commit 0c10b16

Browse files
authored
fix: discrete signature use sign int (#3896)
1 parent 29b1e0b commit 0c10b16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cases/query/feature_signature_query.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,11 @@ cases:
439439
schema: instance:string
440440
order: instance
441441
data: |
442-
1 1:0 13120140547090569137:1 2:1 40:1 140:1 13120140547090569137:1 1203:1
442+
1 1:0 -5326603526618982479:1 2:1 40:1 140:1 -5326603526618982479:1 1203:1
443443
2 1:0 5665509553878826940:1 2:2 43:1 143:1 5665509553878826940:1 1203:2
444-
3 1:1 11991475895402502921:1 2:3 24:1 124:1 11991475895402502921:1 1203:3
445-
4 1:1 11991475895402502921:1 2:4 24:1 124:1 11991475895402502921:1 1203:4
446-
5 1:2 13120140547090569137:1 2:5 40:1 140:1 13120140547090569137:1 1203:5
444+
3 1:1 -6455268178307048695:1 2:3 24:1 124:1 -6455268178307048695:1 1203:3
445+
4 1:1 -6455268178307048695:1 2:4 24:1 124:1 -6455268178307048695:1 1203:4
446+
5 1:2 -5326603526618982479:1 2:5 40:1 140:1 -5326603526618982479:1 1203:5
447447
- id: 21
448448
desc: csv example
449449
mode: procedure-unsupport

hybridse/src/udf/default_defs/feature_signature_def.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ std::string format_continuous(T value) {
181181
return std::to_string(value);
182182
}
183183

184-
std::string format_discrete(uint64_t value) {
184+
std::string format_discrete(int64_t value) {
185185
return std::to_string(value);
186186
}
187187

0 commit comments

Comments
 (0)