You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "sshiv012 (via GitHub)" <gi...@apache.org> on 2026/09/22 23:39:40 UTC
[I] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
sshiv012 opened a new issue, #8638:
URL: https://github.com/apache/texera/issues/8638
### Feature Summary
Delimiter properties are plain text boxes. Users can't tell whether to press Tab or type `\t`, and invalid values are accepted without any message. The two kinds of operator have different flaws.
| Operator | What the value really is | What the UI shows |
|---|---|---|
| CSV File Scan, Parallel CSV File Scan, CSV (old) | **One character**; readers use `customDelimiter.charAt(0)` | An empty-looking one-character box |
| Unnest String | **A Java regex**; split with `delimiter.r.split(...)` | A box described as "string that separates the data" |
**CSV File Scan**
| | |
|---|---|
| <!-- drag before/B01-csv-stored-tab-looks-empty.png here --> _screenshot B01_ | **A saved tab looks empty.** The tab character is stored, but it's invisible, so the field looks unset. |
| <!-- drag before/B02-csv-typing-backslash-t-stops-at-backslash.png here --> _screenshot B02_ | **Typing `\t` doesn't work.** The one-character limit stops typing at `\`, so a backslash is saved and the file is split on the wrong character. |
| <!-- drag before/B03-csv-legacy-multichar-no-error-until-touched.png here --> _screenshot B03_ | **An old invalid value shows no error.** A value such as `,;` saved before the limit existed shows no message, and only its first character is used. |
**Unnest String**
| | |
|---|---|
| <!-- drag before/B05-regex-bare-pipe-accepted-silently.png here --> _screenshot B05_ | **`\|` is accepted silently**, although as a regex it is an empty alternation and splits between every character (`abc` → `a`, `b`, `c`). The user almost certainly meant `\\|`. |
| <!-- drag before/B06-regex-unescaped-dot-accepted-silently.png here --> _screenshot B06_ | **`.` is accepted silently**, although it matches every character, so every piece is empty and the operator outputs no rows. |
| <!-- drag before/B07-regex-unclosed-group-no-inline-error.png here --> _screenshot B07_ | **An invalid pattern, e.g. `(`, shows no error** and still passes workflow compilation. It fails only at run time, with a `PatternSyntaxException`. |
### Proposed Solution or Design
Replace the text box with a **delimiter picker**: a dropdown of common delimiters by name, plus a **Custom…** option that opens a text box. Operators choose one of two modes through a schema hint (`@JsonSchemaInject`).
```
CSV scans (char mode) Comma Tab Semicolon Pipe Space | Custom… (1 character, \t typed -> tab)
Unnest String (regex mode) Comma Tab Semicolon Pipe (\|) Whitespace (\s+) New line | Custom regex…
```
- **The stored value doesn't change.** It's still the delimiter itself, so existing workflows load unchanged, and a stored tab shows as "Tab".
- **Regex mode checks the pattern as you type:**
- it must compile;
- it must not match the empty string (`|`, `\s*`);
- it must not match every character (`.`, which gets "use `\.`" as the hint).
- Java-only syntax (possessive quantifiers, inline flags) is left to the backend.
- **Backend:** Unnest String compiles the pattern while propagating its schema, so an invalid regex is reported as a compile error on the operator instead of at run time.
- **Errors show immediately**, including for invalid values loaded from a saved workflow.
### Affected Area
Workflow UI, Workflow Engine (Amber)
--
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] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
Posted by "parshimers (via GitHub)" <gi...@apache.org>.
parshimers commented on issue #8638:
URL: https://github.com/apache/texera/issues/8638#issuecomment-5896230457
I see. Eventually we need to think about limits for Pattern.compile, but for now I don't think it makes things worse (i.e. I am sure there are many ways to make the compiler consume a lot of resources) and shouldn't block this.
--
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] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
Posted by "parshimers (via GitHub)" <gi...@apache.org>.
parshimers commented on issue #8638:
URL: https://github.com/apache/texera/issues/8638#issuecomment-5822214156
Interesting. I didn't know about the current status, that's kind of bad. It definitely seems better to fix it (e.g. don't require the user to input an invisible character for TSV)
On regex, when it compiles it, where is the compilation of the regex actually taking place? Is it on the frontend or in amber?
--
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] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
Posted by "hhvu0102 (via GitHub)" <gi...@apache.org>.
hhvu0102 commented on issue #8638:
URL: https://github.com/apache/texera/issues/8638#issuecomment-5839504401
<img width="1438" height="696" alt="Image" src="https://github.com/user-attachments/assets/08c00ffc-6312-43f4-8a04-34a24d436cc4" />
Hi all,
Suryaa summarized perfectly my experience with this issue. I'm following up here with a screenshot I had with the suggestion from the AI bot on how to handle this issue. Only the AI bot could put in the delimiter for me. Thanks for your help!
--
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] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
Posted by "sshiv012 (via GitHub)" <gi...@apache.org>.
sshiv012 commented on issue #8638:
URL: https://github.com/apache/texera/issues/8638#issuecomment-5895006754
@parshimers The regex is compiled in three places:
1. Browser, as you type: delimiter-presets.ts:123, with new RegExp(value). It's a quick hint only.
2. Backend, when the workflow compiles: UnnestStringOpDesc.scala:111, with Pattern.compile(source). This is the real check, run by the workflow-compiling-service.
3. Amber, when the workflow runs: UnnestStringOpExec.scala:39, with desc.delimiter.r. This compiles it again to do the split.
--
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] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8638:
URL: https://github.com/apache/texera/issues/8638#issuecomment-5786228538
<!-- texera:template-compliance -->
👋 Thanks for opening this issue, @sshiv012!
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] Delimiter fields are plain text boxes that hide tabs and accept invalid values [texera]
Posted by "parshimers (via GitHub)" <gi...@apache.org>.
parshimers closed issue #8638: Delimiter fields are plain text boxes that hide tabs and accept invalid values
URL: https://github.com/apache/texera/issues/8638
--
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