Skip to content

Error when used the other form for like() with where command #781

@ronja-ui

Description

@ronja-ui

Describe the bug

There's an error if the other form for like() is used with where command.

Expected behavior

It should work the same.

How to reproduce

| makeresults count=6 
| eval row=1 | accum row
| eval sid=case(row=1, "ses-1", row=2, "ses-2", row=3, "ses-3", row=4, "ses-4", row=5, "ses-5", row=6, "ses-6")
| eval uid=case(row=1, "user-1", row=2, "user-2", row=3, "user-3", row=4, "user-4", row=5, "user-5", row=6, "user-6")
| where uid LIKE "user-%"

Compare with this:

| makeresults count=6 
| eval row=1 | accum row
| eval sid=case(row=1, "ses-1", row=2, "ses-2", row=3, "ses-3", row=4, "ses-4", row=5, "ses-5", row=6, "ses-6")
| eval uid=case(row=1, "user-1", row=2, "user-2", row=3, "user-3", row=4, "user-4", row=5, "user-5", row=6, "user-6")
| where like(uid, "user-%")

Screenshots

Software version

pth_10 version: 10.4.0

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions