locationtech / locationtech/geomesa
'like' queries with escaped single quotes throw exceptions
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.5k
- Forks
- 446
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 31
Description
'like' queries with escaped single quotes throw exceptions
Seems to be due to geotools CQL round-trip. The following snippet fails:
ECQL.toFilter(ECQL.toCQL(ECQL.toFilter("name like 'name''1'")))
Original JIRA Issue: https://geomesa.atlassian.net/browse/GEOMESA-2663
Key: GEOMESA-2663
Type: Bug
Priority: Major
Status: To Do
Resolution: Unresolved
Reporter: Emilio Lahr-Vivaz
Created: Tue, 9 Jul 2019 16:36:52 -0400
Updated: Tue, 9 Jul 2019 16:36:52 -0400
Affects Version(s): 2.0.0, 1.3.6, 2.1.0, 2.0.1, 2.0.2, 2.2.0, 2.1.1, 2.3.0, 2.1.2, 2.2.1, 2.2.2, 2.1.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the provided ECQL.toFilter and ECQL.toCQL round-trip snippet. Trace the GeoTools CQL parsing and serialization path involved in escaped single quotes, then add or update a regression test for the expression. Done means the round trip completes without throwing an exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100