This is an IBM Automation portal for Integration products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
Apologies ... having scrolled down further I now see your code from stackoverflow. It looks like you are using the Environment tree to get around the array problem, and were also utilising SUBSTRING with BEFORE as per my suggestion ... Great minds think alike!
RFE Review. Thank you for taking the time to raise this enhancement request and apologies it has been in Submitted status for a while. We agree that having a splitting function would aid usability for writing code, so we like the principle of the suggestion. However, one of the inhibitors to an implementation in this space is that ESQL does not have the concept or syntax structure for array data types. We have array operations in terms of assignments into the logical tree, but we have no array variable directly in ESQL to which we could assign the result of the split. It is for this reason that we have (for example) a poor man's substitute of SUBSTRING which can be used with BEFORE. So you could do something like:
SUBSTRING('Hello World!' BEFORE 'World'); ... which would return 'Hello '.
I suspect this is the kind of thing you have used in your loop?
We're updating the status of this RFE to Uncommitted Candidate, but for other readers passing through here, we would appreciate any suggestions for the precise syntax of the function (working within the constraint of not introducing an array data type).
Although the specific implementation of functions here might not match an actual implementation in IIB, the ability to split strings on delimiters is widely needed. An efficient, well documented, inbuilt function would make development of any ESQL code that worked with delimited strings much simpler and potentially faster, compared with having to implement splitting functions in ESQL itself.
Attachment (Description): Stackoverflow answer for an ESQL implementation of a StringSplitter