mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix: Quote the index pattern in SQL input (#25488)
SQL requires that you quote the index name if you are using special characters (like *, with an index pattern). Our default value didn't work since `logstash*` was not quoted. ### Before  ### After  ...and if you select some valid fields so you don't get an array in the results: 
This commit is contained in:
parent
83369770c6
commit
50eb9e6ef4
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class EssqlDatasource extends PureComponent {
|
|||
else this.props.setInvalid(!query.trim());
|
||||
}
|
||||
|
||||
defaultQuery = 'SELECT * FROM logstash*';
|
||||
defaultQuery = 'SELECT * FROM "logstash*"';
|
||||
|
||||
getQuery = () => getSimpleArg(this.getArgName(), this.props.args)[0];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue