Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2407

PQL: Inequality on dates fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      1
    • Sprint:
      PuppetDB 2016-03-09

      Description

      Looks like currently inequality operators require that the value be a number, which fails on timestamps:

      reports { certname = 'wordpress'
                          and start_time < '2016-02-07T00:00:00.000Z'}
      

      results in

      PQL parse error at line 2, column 34:
       
                      and start_time < '2016-02-07T00:00:00.000Z'}
                                       ^
       
      Expected one of:
       
      #"[0-9]+"
      -
      

      Looks the grammar is wrong in this case and needs to be able to handle numbers or dates there.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                ryan.senior Ryan Senior
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support