Skip to content

Separator in group_concat function with explicit empty string incorrectly defaults to 'space' character #2473

@floresbakker

Description

@floresbakker

Using the group_concat function with the separator indicating an empty string ("") leads incorrectly to the default use of a space character as separator (" ").

Example code:

PREFIX : <http://example.org/>

SELECT ?subject (GROUP_CONCAT(?object; separator="") AS ?concatenatedObjects)
WHERE {
  VALUES (?subject ?object) {
    (:subject1 "a")
    (:subject1 "b")
    (:subject1 "c")
  }
}
GROUP BY ?subject

Expected outcome for concatenatedObjects:

abc

Instead we get:

a b c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions