Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
cb1cae2b
Unverified
Commit
cb1cae2b
authored
Apr 13, 2023
by
Aitongong
Committed by
GitHub
Apr 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复类型强转成string类型异常 (#1879)
Co-authored-by:
czx-Adam
<
chenzexu@mysteel.com
>
parent
7223d3c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ObjectConvertUtil.java
...1.13/src/main/java/org/dinky/utils/ObjectConvertUtil.java
+1
-1
ObjectConvertUtil.java
...1.14/src/main/java/org/dinky/utils/ObjectConvertUtil.java
+1
-1
ObjectConvertUtil.java
...1.15/src/main/java/org/dinky/utils/ObjectConvertUtil.java
+1
-1
ObjectConvertUtil.java
...1.16/src/main/java/org/dinky/utils/ObjectConvertUtil.java
+1
-1
No files found.
dinky-client/dinky-client-1.13/src/main/java/org/dinky/utils/ObjectConvertUtil.java
View file @
cb1cae2b
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
}
}
}
else
if
(
logicalType
instanceof
DecimalType
)
{
}
else
if
(
logicalType
instanceof
DecimalType
)
{
return
new
BigDecimal
(
(
String
)
value
);
return
new
BigDecimal
(
String
.
valueOf
(
value
)
);
}
else
if
(
logicalType
instanceof
BigIntType
)
{
}
else
if
(
logicalType
instanceof
BigIntType
)
{
if
(
value
instanceof
Integer
)
{
if
(
value
instanceof
Integer
)
{
return
((
Integer
)
value
).
longValue
();
return
((
Integer
)
value
).
longValue
();
...
...
dinky-client/dinky-client-1.14/src/main/java/org/dinky/utils/ObjectConvertUtil.java
View file @
cb1cae2b
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
}
}
}
else
if
(
logicalType
instanceof
DecimalType
)
{
}
else
if
(
logicalType
instanceof
DecimalType
)
{
return
new
BigDecimal
(
(
String
)
value
);
return
new
BigDecimal
(
String
.
valueOf
(
value
)
);
}
else
if
(
logicalType
instanceof
BigIntType
)
{
}
else
if
(
logicalType
instanceof
BigIntType
)
{
if
(
value
instanceof
Integer
)
{
if
(
value
instanceof
Integer
)
{
return
((
Integer
)
value
).
longValue
();
return
((
Integer
)
value
).
longValue
();
...
...
dinky-client/dinky-client-1.15/src/main/java/org/dinky/utils/ObjectConvertUtil.java
View file @
cb1cae2b
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
}
}
}
else
if
(
logicalType
instanceof
DecimalType
)
{
}
else
if
(
logicalType
instanceof
DecimalType
)
{
return
new
BigDecimal
(
(
String
)
value
);
return
new
BigDecimal
(
String
.
valueOf
(
value
)
);
}
else
if
(
logicalType
instanceof
BigIntType
)
{
}
else
if
(
logicalType
instanceof
BigIntType
)
{
if
(
value
instanceof
Integer
)
{
if
(
value
instanceof
Integer
)
{
return
((
Integer
)
value
).
longValue
();
return
((
Integer
)
value
).
longValue
();
...
...
dinky-client/dinky-client-1.16/src/main/java/org/dinky/utils/ObjectConvertUtil.java
View file @
cb1cae2b
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
...
@@ -69,7 +69,7 @@ public class ObjectConvertUtil {
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
return
Instant
.
ofEpochMilli
((
long
)
value
).
atZone
(
sinkTimeZone
).
toLocalDateTime
();
}
}
}
else
if
(
logicalType
instanceof
DecimalType
)
{
}
else
if
(
logicalType
instanceof
DecimalType
)
{
return
new
BigDecimal
(
(
String
)
value
);
return
new
BigDecimal
(
String
.
valueOf
(
value
)
);
}
else
if
(
logicalType
instanceof
BigIntType
)
{
}
else
if
(
logicalType
instanceof
BigIntType
)
{
if
(
value
instanceof
Integer
)
{
if
(
value
instanceof
Integer
)
{
return
((
Integer
)
value
).
longValue
();
return
((
Integer
)
value
).
longValue
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment