You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "kz930 (via GitHub)" <gi...@apache.org> on 2026/08/28 20:57:53 UTC

[I] Keyword Search ends the run on an unpaired double quote [texera]

kz930 opened a new issue, #8074:
URL: https://github.com/apache/texera/issues/8074

   ### What happened?
   
   The operator hands the typed value straight to Lucene's query parser:
   
   ```scala
   @transient lazy val query: Query = new QueryParser(desc.attribute, analyzer).parse(desc.keyword)
   ```
   
   The parser's lexer reads a double quote as opening a phrase, so a value carrying one on its own never terminates it and `parse` throws before a single row is read. The run ends with the error below. The form accepted the value without objection: the field declares only `minLength: 1`.
   
   I checked this against Lucene 8.7's QueryParser, the version the executor uses. `he"llo` throws and `"a b"` parses as a phrase, so it is the pairing rather than the character that decides.
   
   I expected the field to say what it takes. The keyword is a Lucene query, and the pairing rule is one the schema can state: a pattern that allows any number of quoted spans and rejects a lone quote. Other Texera fields already declare what they accept this way, for instance the chart colour settings.
   
   It is not the only value the parser refuses. `wine(` and `foo)` throw as well. Those are not statable the same way: which uses of a parenthesis parse depends on what follows, and a pattern strict enough to catch them would reject the grouped queries that work today.
   
   ### How to reproduce?
   
   1. Any table with a text column.
   2. Connect Keyword Search, point it at that column, and type `he"llo` as the keyword.
   3. Run.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Relevant log output
   
   ```shell
   org.apache.lucene.queryparser.classic.ParseException: Cannot parse 'he"llo': Lexical error at line 1, column 7.  Encountered: <EOF> after : "\"llo"
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Keyword Search ends the run on an unpaired double quote [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8074:
URL: https://github.com/apache/texera/issues/8074#issuecomment-5457762340

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @kz930!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Keyword Search ends the run on an unpaired double quote [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan closed issue #8074: Keyword Search ends the run on an unpaired double quote
URL: https://github.com/apache/texera/issues/8074


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Keyword Search ends the run on an unpaired double quote [texera]

Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on issue #8074:
URL: https://github.com/apache/texera/issues/8074#issuecomment-5457687535

   /take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org