Add TEXTJOIN function#1625
Open
marcin-kordas-hoc wants to merge 3 commits intohandsontable:developfrom
Open
Conversation
* Fix package-lock file * Docs: remove CodeSandbox embedded demos and add links to working exa,ples in Stackblitz (handsontable#1621)
- Remove dead code: redundant CellError check after coerceScalarToString in flattenArgToStrings - Remove empty no-op afterEach callback from textjoin test suite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TEXTJOIN(delimiter, ignore_empty, text1, [text2, …])inTextPluginignore_emptyisTRUE; includes them whenFALSE#VALUE!when the result exceeds 32,767 characters (Excel cell limit)ErrorMessage.TextJoinResultTooLongfor the length-exceeded errordocs/guide/built-in-functions.mdTest plan
test/textjoin.spec.tscovering basic usage,ignore_emptybehaviour, array/range delimiters with cycling, type coercion, error propagation, and edge casestest/smoke.spec.tsinclude TEXTJOIN scenariosnpm run test:jest)npm run compile)npm run lint)Note
Medium Risk
Adds a new built-in formula function in the interpreter, including range flattening/coercion and a hard output-length limit, which could affect evaluation behavior and error propagation in text-heavy sheets. Changes are localized but touch core formula execution paths and add broad i18n updates.
Overview
Adds the
TEXTJOIN(delimiter, ignore_empty, text1, ...)built-in function, supporting scalar or range/array delimiters (cycled between joined values), optional skipping of empty strings, and a new#VALUE!error when the output exceeds 32,767 characters viaErrorMessage.TextJoinResultTooLong.Updates function-name translations across all supported languages, documents
TEXTJOINinbuilt-in-functions.md, and adds comprehensive coverage via newtextjoin.spec.tsplus additional smoke tests.Docs demos are switched from embedded CodeSandbox iframes to Stackblitz links, and
package-lock.jsonis updated (notably adding platform-specificesbuildoptional packages).Written by Cursor Bugbot for commit 435556f. This will update automatically on new commits. Configure here.