-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In DataFlow threaded execution variables passed to UDF in event filter when Filter-Optimizable setting is on evaluating to null #224
Labels
Comments
icholy
changed the title
Variables in On-Select filter-criteria evaluating to null
Variables passed to UDF in filter-criteria evaluating to null
Dec 3, 2020
icholy
changed the title
Variables passed to UDF in filter-criteria evaluating to null
Variables passed to UDF in event filter evaluating to null
Dec 3, 2020
Use ConfigurationCompilerPlugInSingleRowFunction.FilterOptimizable.DISABLED For reference: String epl = "@name('schema') @public @buseventtype create schema Empty ();\n" + "create dataflow InputOutput\n" + " BeaconSource -> events {}\n" + " EventBusSink(events) {};\n" + "create variable String X = String.valueOf(1);\n" + "@name('s0') select * from Empty(localAssertNotNull(X));\n"; env.compileDeploy(epl).addListener("s0"); EPDataFlowInstance instance = env.runtime().getDataFlowService().instantiate(env.deploymentId("schema"), "InputOutput"); instance.start(); try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } env.assertListenerInvoked("s0"); instance.cancel(); env.undeployAll(); |
bernhardttom
changed the title
Variables passed to UDF in event filter evaluating to null
Variables passed to UDF in event filter when Filter-Optimizable setting is on evaluating to null
Jan 22, 2021
Could however improve to detect the variable or provide an exception |
bernhardttom
changed the title
Variables passed to UDF in event filter when Filter-Optimizable setting is on evaluating to null
In DataFlow threaded execution variables passed to UDF in event filter when Filter-Optimizable setting is on evaluating to null
Jan 22, 2021
If a constant is used instead of a variable, null is not passed. |
@bernhardttom btw, I already have |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Variables passed to UDFs in event filters evaluate to null if the event originates from a dataflow operator.
The text was updated successfully, but these errors were encountered: