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

Select all fields with some custom mappings #1737

Closed
cur53onu opened this issue Aug 10, 2021 · 1 comment
Closed

Select all fields with some custom mappings #1737

cur53onu opened this issue Aug 10, 2021 · 1 comment

Comments

@cur53onu
Copy link

I have the pattern query and I want to select all fields with some of our custom mapping can we do this?
ex:
from every( e1=TempStream ) -> e2=TempStream[ e1.roomNo == 25 and (e1.temp + 5) <= temp ]
within 10 min select e1.roomNo, e1.temp as initialTemp, e2.temp as finalTemp
insert into AlertStream;
for this type of query I want to select all fields from e1 and e2 and I want to add some custom field (which are not there in e1 and e2) in AlertStream

@pranjal0811
Copy link

I want to run the query like this -
can it be possible ?

from every( e1=TempStream ) -> e2=TempStream[ e1.roomNo == 25 and (e1.temp + 5) <= temp ]
within 10 min select e1 as event1, e2 as event2 , 'custom' as customeString
insert into AlertStream;

@cur53onu cur53onu closed this as completed Nov 4, 2021
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

No branches or pull requests

2 participants