Skip to content
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

Fixing stdDev, avg, sum to return null, being consistent with SQL #344

Merged
merged 9 commits into from
May 12, 2017

Conversation

suhothayan
Copy link
Contributor

@suhothayan suhothayan commented May 5, 2017

Also adding default() to handle null cases.

…aviour, fixing test cases

+ adding default() to handle null occurrences.
# Conflicts:
#	modules/siddhi-extensions/input-transports/tcp-input-transport/src/test/java/org/wso2/siddhi/extension/input/transport/tcp/TCPSourceTestCase.java
#	modules/siddhi-extensions/input-transports/tcp-input-transport/src/test/java/org/wso2/siddhi/extension/input/transport/tcp/TcpInputTransportTestCase.java
# Conflicts:
#	modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/selector/attribute/aggregator/StdDevAttributeAggregator.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/CronWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/CustomJoinWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/ExternalTimeBatchWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/FrequentWindowEventTbaleTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/LenghtBatchWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/LenghtWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/LossyFrequentWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/SortWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/TimeBatchWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/TimeLengthWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/TimeWindowTestCase.java
#	modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/eventwindow/WindowDefinitionTestCase.java
#	modules/siddhi-extensions/input-transports/tcp-input-transport/src/test/java/org/wso2/siddhi/extension/input/transport/tcp/TCPSourceTestCase.java
org.junit.Assert.assertEquals("Event arrived", true, eventArrived);
org.junit.Assert.assertEquals("In Events ", 2, inEventCount);
org.junit.Assert.assertEquals("Remove Events ", 0, removeEventCount);
junit.framework.Assert.assertEquals("Event arrived", true, eventArrived);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use jnit.Assert instead of framework

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@tishan89 tishan89 merged commit 4683337 into siddhi-io:master May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants