You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/08/17 06:45:46 UTC

[incubator-devlake] branch main updated: fix: starrocks plugin double precision convert

This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 9f2e19c3 fix: starrocks plugin double precision convert
9f2e19c3 is described below

commit 9f2e19c395314a4f2e571e40667c2f9478d78b25
Author: Jinlong Peng <ji...@merico.dev>
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"