File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/nlpcn/es4sql Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >org.nlpcn</groupId >
5
5
<artifactId >elasticsearch-sql</artifactId >
6
- <version >6.2.4.0 </version >
6
+ <version >6.2.4.1 </version >
7
7
<packaging >jar</packaging >
8
8
<description >Query elasticsearch using SQL</description >
9
9
<name >elasticsearch-sql</name >
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ private static String extractName(SQLExpr script) {
221
221
String newScript = variance [variance .length - 1 ];
222
222
if (newScript .trim ().startsWith ("def " )) {
223
223
//for now ,if variant is string,then change to double.
224
- return newScript .substring (4 ).split ("=" )[0 ].trim ();
224
+ return newScript .trim (). substring (4 ).split ("=" )[0 ].trim ();
225
225
} else return scriptStr ;
226
226
}
227
227
@@ -232,7 +232,7 @@ private static String convertType(SQLExpr script) {
232
232
String newScript = variance [variance .length - 1 ];
233
233
if (newScript .trim ().startsWith ("def " )) {
234
234
//for now ,if variant is string,then change to double.
235
- String temp = newScript .substring (4 ).split ("=" )[0 ].trim ();
235
+ String temp = newScript .trim (). substring (4 ).split ("=" )[0 ].trim ();
236
236
237
237
return " if( " + temp + " instanceof String) " + temp + "= Double.parseDouble(" + temp .trim () + "); " ;
238
238
} else return "" ;
You can’t perform that action at this time.
0 commit comments