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

Question in the blog of structured streaming part 11 #3

Open
bithw1 opened this issue Jul 23, 2018 · 0 comments
Open

Question in the blog of structured streaming part 11 #3

bithw1 opened this issue Jul 23, 2018 · 0 comments

Comments

@bithw1
Copy link

bithw1 commented Jul 23, 2018

Hi @phatak-dev
First, thank you very much for the great effort to write the structured streaming series.
I got a question: in http://blog.madhukaraphatak.com/introduction-to-spark-structured-streaming-part-11/

Running the Example
Enter the below records in socket console. These are records for AAPL with time stamps.

First Event
The first records is for time Wed, 27 Apr 2016 11:34:22 GMT.

1461756862000,"aapl",500.0
Spark outputs below results which indicates start of window


Batch: 0

+---------------------------------------------+----------+
|window |sum(value)|
+---------------------------------------------+----------+
|[2016-04-27 17:04:20.0,2016-04-27 17:04:30.0]|500.0 |
+---------------------------------------------+----------+

The first record is 2016-04-27 11:34:22, why in batch 0 the window interval is
2016-04-27 17:04:20.0,2016-04-27 17:04:30.0, I thought it should be around 2016-04-27 11:34:22,

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

1 participant