Ask Your Question

How to use Functions in StreamSelector component?

asked 2018-12-03 22:11:28 -0600

casel.chen gravatar image

I want to check a field (a map type) is empty or not, then I choose to use isEmptyMap() function as ${!isEmptyMap(record:value('/hitRuleSets'))} , but when I click check button, the sdc compains the following error:

SELECTOR_03 - Invalid condition '${!isEmptyMap(record:value('/hitRuleSets'))}': com.streamsets.pipeline.api.el.ELEvalException: CMN_0104 - Error evaluating expression ${!isEmptyMap(record:value('/hitRuleSets'))}: javax.servlet.jsp.el.ELException: No function is mapped to the name "isEmptyMap"

How to use Functions in StreamSelector component?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-04 12:18:54 -0600

iamontheinet gravatar image


StreamSelector currently does not support isEmptyList() or isEmptyMap() functions? Feel free to create enhancement JIRA ticket for it --

As a workaround, you can implement the following:

image description

Note: In Field Expression, replace isEmptyList() with isEmptyMap() and 'list_field_name' with your map field.

image description

Cheers, Dash

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-12-03 22:11:28 -0600

Seen: 421 times

Last updated: Dec 04 '18