[Fix] [Plugin] Fixed Incomplete data returned by cratedb

This commit is contained in:
qianmoQ 2022-11-18 23:25:13 +08:00
parent 129cbf3b63
commit c701f0b59a
2 changed files with 5 additions and 3 deletions

View File

@ -57,8 +57,10 @@ public class CrateDBAdapter
else {
headers.addAll(applyResponse.getHeaders());
types.addAll(applyResponse.getTypes());
List<Object> _columns = (List<Object>) applyResponse.getColumns().get(0);
columns.add(handlerFormatter(httpConfigure.getFormat(), headers, _columns));
for (Object column : applyResponse.getColumns()) {
List<Object> _columns = (List<Object>) column;
columns.add(handlerFormatter(httpConfigure.getFormat(), headers, _columns));
}
}
response.setIsSuccessful(Boolean.TRUE);
}

View File

@ -7,7 +7,7 @@ public interface Plugin
{
default String validator()
{
return "SELECT version()";
return "SELECT version() AS version";
}
String name();