Created
July 21, 2019 13:10
-
-
Save minudika/e23394b96572d596fbfdf95c57d35202 to your computer and use it in GitHub Desktop.
This file contains 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
from dayFilterStream | |
select messageId, username, ifThenElse(minLoginTime<=loginHour and loginHour<=maxLoginTime, 0.0, ifThenElse(minLoginTime-2<loginHour and loginHour<maxLoginTime+2, 0.5, 1.0)) as risk | |
insert into OutputStream; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment