GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SQL ILIKE will fails on string with \n inside · Issue #1577 · ArcadeData/arcadedb

SQL ILIKE will fails on string with \n inside #1577

New issue
Copy link
New issue
Copy link
Closed
Closed
SQL ILIKE will fails on string with \n inside#1577
Copy link
Assignees
gramian
Labels
workaround-provided

Description

@ExtReMLapin
ExtReMLapin
opened on Apr 29, 2024
Issue body actions

Hello, it's me again. TL;DR at the bottom

ArcadeDB Version:

ArcadeDB Server v24.5.1-SNAPSHOT (build 71472c4c05ae9278d0d5d71a919b31883e1ea767/1713899543605/main) is starting up... creating nodes and reading nodes

OS and JDK Version:

Running on Linux 5.15.0-100-generic - OpenJDK 64-Bit Server VM 11.0.22 for creating nodes and reading nodes

Expected behavior

ILIKE should match in any case not based on existence of \n inside the string

Actual behavior

ILIKE fails when there is any \n inside the string.

Steps to reproduce

Pick up this database :

test_db.zip

Try both :

SELECT *  FROM CHUNK"
SELECT *  FROM CHUNK where text ILIKE "%e%"

In theory, both request should output same result as all the CHUNK nodes have at least one e in the text field, however, here it fails to catch one of them.

TLDR :

All 4 have e, ILIKE should match all of them, but it doesn't.

firefox_xuuEyHHDPs
firefox_GfRXRz83d5

This is the correct query to execute as a temp fix :

SELECT *  FROM CHUNK where text.replace('\n', '') ILIKE "%e%"

Thanks for the help.

Activity

  1. ExtReMLapin
    changed the title [-]*Sometimes*, depending on node creation, SQL ILIKE will fails on long texts.[/-] [+]*Sometimes*, depending on node creation, SQL ILIKE will fails on long strings.[/+] on Apr 29, 2024
  2. ExtReMLapin commented on Apr 29, 2024

    @ExtReMLapin
    ExtReMLapin
    on Apr 29, 2024
    ContributorAuthor
    More actions

    What's weird is that when created on another database, isolated, there is no issue.

    image

  3. gramian commented on Apr 29, 2024

    @gramian
    gramian
    on Apr 29, 2024
    Collaborator
    More actions

    Hi,
    does the same happen with LIKE + toLowerCase(), ie:

    SELECT *  FROM CHUNK where text.toLowerCase() LIKE "%e%"
    
  4. ExtReMLapin commented on Apr 29, 2024

    @ExtReMLapin
    ExtReMLapin
    on Apr 29, 2024
    ContributorAuthor
    More actions

    Yep, only 3 records, still not 4

  5. ExtReMLapin commented on Apr 29, 2024

    @ExtReMLapin
    ExtReMLapin
    on Apr 29, 2024
    ContributorAuthor
    More actions

    It also could be something than the text len, it could be a special character in the string as spamming e didn't cause this issue

  6. gramian commented on Apr 29, 2024

    @gramian
    gramian
    on Apr 29, 2024
    Collaborator
    More actions

    I was also thinking of special chars, could you try normalize() in the filter, ie:

    SELECT *  FROM CHUNK where text.normalize() ILIKE "%e%"
    
  7. ExtReMLapin commented on Apr 29, 2024

    @ExtReMLapin
    ExtReMLapin
    on Apr 29, 2024
    ContributorAuthor
    More actions

    It doesn't help, We were already using normalization, "lowercase mode" in the original request my coworkers was working on.
    We on purpose moved for this specific request from Cypher to SQL to have the normalization features.

  8. ExtReMLapin commented on Apr 29, 2024

    @ExtReMLapin
    ExtReMLapin
    on Apr 29, 2024
    ContributorAuthor
    More actions

    It's the \n that breaks it.

  9. ExtReMLapin
    changed the title [-]*Sometimes*, depending on node creation, SQL ILIKE will fails on long strings.[/-] [+]SQL ILIKE will fails on string with \n inside[/+] on Apr 29, 2024
  10. ExtReMLapin commented on Apr 29, 2024

    @ExtReMLapin
    ExtReMLapin
    on Apr 29, 2024
    ContributorAuthor
    More actions

    Sorry for the spam, but SELECT * FROM CHUNK where text.replace('\n', '') ILIKE "%e%" fixes it

  11. gramian commented on Apr 29, 2024

    @gramian
    gramian
    on Apr 29, 2024
    Collaborator
    More actions

    Good find. This may still be an issue or at least needs documentation.

    Reacted by ExtReMLapin
  12. gramian
    added
    workaround-provided
    on Apr 29, 2024
  13. gramian
    self-assigned this
    on Apr 29, 2024
  14. gramian commented on Apr 29, 2024

    @gramian
    gramian
    on Apr 29, 2024
    Collaborator
    More actions

    Maybe Pattern.DOTALL needs to be added here?

  15. gramian commented on May 8, 2024

    @gramian
    gramian
    on May 8, 2024
    Collaborator
    More actions

    @ExtReMLapin this should be fixed in the current repo head. Feel free to reopen if you find a problem.

    Reacted by ExtReMLapin
  16. gramian
    closed this as completedon May 8, 2024
  17. mergify
    added a commit that references this issue on Aug 29, 2025

    chore(studio-deps-dev)(deps-dev): bump css-loader from 6.11.0 to 7.1.…

    e2a697a
  18. tae898
    added a commit that references this issue on Jun 28, 2026

    chore(studio-deps-dev)(deps-dev): bump css-loader from 6.11.0 to 7.1.…

    b20a7e1
  19. mergify
    added a commit that references this issue on Jul 19, 2026

    chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 [skip ci]

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

Metadata

Metadata

Assignees

  • @gramian
    gramian

Labels

workaround-provided

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.