This is an automated email from the ASF dual-hosted git repository.
warren pushed a commit to branch release-v0.12
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.12 by this push:
new d49e34c9 fix: starrocks plugin double precision convert
d49e34c9 is described below
commit d49e34c959cacfde789e3f41f372b88500ae54f8
Author: Jinlong Peng <[email protected]>
AuthorDate: Wed Aug 17 14:28:49 2022 +0800
fix: starrocks plugin double precision convert
---
plugins/starrocks/utils.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/starrocks/utils.go b/plugins/starrocks/utils.go
index c98d3276..0306ec3a 100644
--- a/plugins/starrocks/utils.go
+++ b/plugins/starrocks/utils.go
@@ -6,7 +6,7 @@ The ASF licenses this file to You under the Apache License,
Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -95,7 +95,7 @@ func getDataType(dataType string) string {
starrocksDatatype = "string"
} else if dataType == "tinyint(1)" {
starrocksDatatype = "boolean"
- } else if dataType == "numeric" {
+ } else if stringIn(dataType, "numeric", "double precision") {
starrocksDatatype = "double"
} else if stringIn(dataType, "json", "jsonb") {
starrocksDatatype = "json"