IBM Support

IJ13437: AQL QUERY CONTAINING AGGREGATE FUNCTIONS IN THE 'WHERE' CLAUSE GENERATES AN AQLPARSEREXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • It has been identified that a RuntimeException is generated
    when executing invalid AQL queries that contain aggregate
    functions in the WHERE clause.
    In the QRadar user interface, messages similar to the following
    might be returned when this issue is occurring:
    (0) Aggregate functions not allowed in WHERE clause.
    Hide details
    Aggregate functions not allowed in WHERE clause.
    select FIRST(username) as x from events where x is not null
    Messages similar to the following might visible in
    /var/log/qradar.log when this issue is occurring:
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724] com.q1labs.ariel.ql.parser.Parser: [ERROR]
    [NOT:0000003000][127.0.0.1/- -] [-/- -]Aggregate functions not
    allowed in WHERE clause.
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]
    com.q1labs.ariel.ql.parser.AQLParserException: Aggregate
    functions not allowed in WHERE clause.
    x from events where x is not null
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.processExpression(ParserBa
    se.java:374)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.processBooleanExpression(P
    arserBase.java:1182)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.createQueryParams(ParserBa
    se.java:1433)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.parseBatch(ParserBase.java
    :1636)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.Parser.parseStatement(Parser.java:156
    )
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.Parser.executeStatement(Parser.java:6
    6)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ConnectedClient.processStatement(ConnectedClien
    t.java:367)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ConnectedClient.processMessage(ConnectedClient.
    java:308)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ConnectedClient.run(ConnectedClient.java:136)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec
    utor.java:1160)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe
    cutor.java:635)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at java.lang.Thread.run(Thread.java:811)
    [tomcat.tomcat] [admin@127.0.0.1 (7613)
    /console/JSON-RPC/QRadar.isAqlQueryParsable
    QRadar.isAqlQueryParsable]
    com.q1labs.uiframeworks.util.MessageUtils: [WARN]
    [NOT:0000004000][127.0.0.1/- -] [-/- -]    Response Code: 0
    (Aggregate functions not allowed in WHERE clause.) not found.
    Error will be added as a GLOBAL_MESSAGE and resource key will
    be errors.0
    

Local fix

  • No workaround available.
    

Problem summary

  • It has been identified that a RuntimeException is generated
    when executing invalid AQL queries that contain aggregate
    functions in the WHERE clause.
    In the QRadar user interface, messages similar to the following
    might be returned when this issue is occurring:
    (0) Aggregate functions not allowed in WHERE clause.
    Hide details
    Aggregate functions not allowed in WHERE clause.
    select FIRST(username) as x from events where x is not null
    Messages similar to the following might visible in
    /var/log/qradar.log when this issue is occurring:
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724] com.q1labs.ariel.ql.parser.Parser: [ERROR]
    [NOT:0000003000][127.0.0.1/- -] [-/- -]Aggregate functions not
    allowed in WHERE clause.
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]
    com.q1labs.ariel.ql.parser.AQLParserException: Aggregate
    functions not allowed in WHERE clause.
    x from events where x is not null
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.processExpression(ParserBa
    se.java:374)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.processBooleanExpression(P
    arserBase.java:1182)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.createQueryParams(ParserBa
    se.java:1433)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.ParserBase.parseBatch(ParserBase.java
    :1636)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.Parser.parseStatement(Parser.java:156
    )
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ql.parser.Parser.executeStatement(Parser.java:6
    6)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ConnectedClient.processStatement(ConnectedClien
    t.java:367)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ConnectedClient.processMessage(ConnectedClient.
    java:308)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    com.q1labs.ariel.ConnectedClient.run(ConnectedClient.java:136)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec
    utor.java:1160)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe
    cutor.java:635)
    [ariel_proxy.ariel_proxy_server] [ariel_client
    /127.0.0.1:33724]    at java.lang.Thread.run(Thread.java:811)
    [tomcat.tomcat] [admin@127.0.0.1 (7613)
    /console/JSON-RPC/QRadar.isAqlQueryParsable
    QRadar.isAqlQueryParsable]
    com.q1labs.uiframeworks.util.MessageUtils: [WARN]
    [NOT:0000004000][127.0.0.1/- -] [-/- -]    Response Code: 0
    (Aggregate functions not allowed in WHERE clause.) not found.
    Error will be added as a GLOBAL_MESSAGE and resource key will
    be errors.0
    

Problem conclusion

  • This issue was fixed in QRadar 7.3.2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ13437

  • Reported component name

    QRADAR SOFTWARE

  • Reported component ID

    5725QRDSW

  • Reported release

    732

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-02-11

  • Closed date

    2019-02-20

  • Last modified date

    2019-02-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    QRADAR SOFTWARE

  • Fixed component ID

    5725QRDSW

Applicable component levels

[{"Business Unit":{"code":"BU008","label":"Security"},"Product":{"code":"SSBQAC","label":"IBM Security QRadar SIEM"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"732","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
20 February 2019