parseSQL.getSql());
}
}
}
Where where = query.where().index(index);
processKey(parseSQL, keys, where);
} else {
if (hint != null && StringUtils.isNotBlank(hint.getErrmsg())) {
logger.warn("TDHS: JDBC hint error:" + hint.getErrmsg() + " , SQL:" + parseSQL.getSql());
}
List<String> orderByColumn = parseSQL.getOrderByColumn();
if ((orderByColumn != null && !orderByColumn.isEmpty()) || parseSQL.getSortMethod() != null) {
throw new TDHSSQLException("can't support orderBy without hint!", parseSQL.getSql());
}
OperationStruct firstKey = operation.get(0);
keys.add(firstKey);
String firstField = StringUtil.escapeField(firstKey.getColumnName());
if (firstField == null) {
throw new TDHSSQLException("error field [" + firstKey.getColumnName() + "]", parseSQL.getSql());
}
Where where = query.where().fields(firstField);
processKey(parseSQL, keys, where);
}
for (OperationStruct o : operation) {