Skip to content

SQL: semantic negation of LIKE and ILIKE #1581

Closed
Closed

Description

@gramian

ArcadeDB Version:

ArcadeDB Server v24.5.1-SNAPSHOT (build 11db1796a17bfccb23d22cfa73906fbae9f46338/1714568271787/main)

OS and JDK Version:

Running on Mac OS X 12.7.4 - OpenJDK 64-Bit Server VM 17.0.11 (Homebrew)

To negate a LIKE or ILIKE operator one needs to prepend a NOT operator while typically one can write NOT LIKE or NOT ILIKE ie in Postgres.

Current behavior

SELECT (NOT ('abc' LIKE 'a?c'))
SELECT (NOT ('ABC' ILIKE 'a?c'))

Proposed behavior

SELECT ('abc' NOT LIKE 'a?c')
SELECT ('ABC' NOT ILIKE 'a?c')

Activity

  1. added
    enhancement
    on May 23, 2024
  2. added this to the 25.1.1 milestone on Oct 14, 2024
  3. self-assigned this
    on Dec 30, 2024
  4. modified the milestones: 25.1.1, 25.2.1 on Jan 25, 2025
  5. modified the milestones: 25.2.1, 25.3.1 on Feb 27, 2025
  6. modified the milestones: 25.3.1, 25.3.2 on Mar 7, 2025
  7. modified the milestones: 25.3.2, 25.4.1 on Mar 24, 2025
  8. modified the milestones: 25.4.1, 25.5.1 on Apr 22, 2025
  9. modified the milestones: 25.5.1, 25.6.1 on May 30, 2025
  10. 9 remaining items

  11. added this to the 25.11.1 milestone on Nov 5, 2025
  12. modified the milestones: 25.11.1, 26.2.1 on Dec 9, 2025
  13. added
    in progress
    on Jan 22, 2026
  14. assigned and unassigned on Jan 22, 2026
  15. lvca commented on Jan 22, 2026

    @lvca
    Member

    Supporting this:

    SELECT FROM V WHERE surname NOT LIKE 'pattern'
    SELECT FROM V WHERE name NOT ILIKE '%search%'
    SELECT ('abc' NOT LIKE 'a?c') as result
    SELECT ('ABC' NOT ILIKE 'a?c') as result
    
  16. added a commit that references this issue on Jan 22, 2026
  17. added and removed
    in progress
    on Jan 22, 2026
  18. gramian commented on Jan 24, 2026

    @gramian
    CollaboratorAuthor

    Works for me. Very cool! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions