Remove last keyword from UI SQL parser config (#6362)

This commit is contained in:
gillespi314 2022-06-24 10:19:06 -05:00 committed by GitHub
parent 79bf51b03c
commit b6a816fe52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1 @@
- Update UI SQL syntax highlighting to display `last` as an osquery table rather than keyword

View file

@ -25,8 +25,10 @@ ace.define(
var builtinConstants = "true|false";
// Note: `last` was removed from the list of built-in functions because it collides with the
// `last` table available in osquery
var builtinFunctions =
"avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|" +
"avg|count|first|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|" +
"coalesce|ifnull|isnull|nvl";
var dataTypes =