|
...
|
...
|
@@ -475,10 +475,16 @@ func (tableService *TableService) ValidExprSql(ctx *domain.Context, cmd *command |
|
|
|
sql += " from " + strings.Join(set.KeysStr(), ",")
|
|
|
|
sql += " limit 1"
|
|
|
|
}
|
|
|
|
tx := starrocks.DB.Exec(sql)
|
|
|
|
if tx.Error != nil {
|
|
|
|
//tx := starrocks.DB.Exec(sql)
|
|
|
|
//if tx.Error != nil {
|
|
|
|
// return map[string]string{
|
|
|
|
// "result": tx.Error.Error(),
|
|
|
|
// }, nil
|
|
|
|
//}
|
|
|
|
err := starrocks.ExecOfficial(sql)
|
|
|
|
if err != nil {
|
|
|
|
return map[string]string{
|
|
|
|
"result": tx.Error.Error(),
|
|
|
|
"result": err.Error(),
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
case domain.ExprModeExcelFunction:
|
...
|
...
|
|