mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
(fix)(headless)Fix demo conversations with DETAIL query mode.
(fix)(headless)Fix demo conversations with DETAIL query mode.
This commit is contained in:
@@ -34,12 +34,13 @@ public class JdbcExecutor implements QueryExecutor {
|
||||
}
|
||||
|
||||
SqlUtils sqlUtils = ContextUtils.getBean(SqlUtils.class);
|
||||
log.info("executing SQL: {}", StringUtils.normalizeSpace(queryStatement.getSql()));
|
||||
String sql = StringUtils.normalizeSpace(queryStatement.getSql());
|
||||
log.info("executing SQL: {}", sql);
|
||||
Database database = queryStatement.getSemanticModel().getDatabase();
|
||||
SemanticQueryResp queryResultWithColumns = new SemanticQueryResp();
|
||||
SqlUtils sqlUtil = sqlUtils.init(database);
|
||||
sqlUtil.queryInternal(queryStatement.getSql(), queryResultWithColumns);
|
||||
queryResultWithColumns.setSql(queryStatement.getSql());
|
||||
queryResultWithColumns.setSql(sql);
|
||||
return queryResultWithColumns;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user