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

[SPARK-21565][SS] Propagate metadata in attribute replacement. #18840

Closed
wants to merge 2 commits into from

Conversation

jose-torres
Copy link
Contributor

What changes were proposed in this pull request?

Propagate metadata in attribute replacement during streaming execution. This is necessary for EventTimeWatermarks consuming replaced attributes.

How was this patch tested?

new unit test, which was verified to fail before the fix

@zsxwing
Copy link
Member

zsxwing commented Aug 4, 2017

ok to test

Copy link
Member

@zsxwing zsxwing left a comment

Choose a reason for hiding this comment

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

LGTM except one nit

.outputMode("append")
.format("console")
.start()
q.processAllAvailable()
Copy link
Member

Choose a reason for hiding this comment

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

nit: q.processAllAvailable() ->

try {
  q.processAllAvailable()
} finally {
  q.stop()
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@SparkQA
Copy link

SparkQA commented Aug 4, 2017

Test build #80233 has finished for PR 18840 at commit e54d812.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Aug 7, 2017

LGTM pending tests.

@zsxwing
Copy link
Member

zsxwing commented Aug 7, 2017

@joseph-torres could you change the PR title to "[SPARK-21565][SS] Propagate metadata in attribute replacement"? We usually put the module name in the PR title.

@jose-torres jose-torres changed the title [SPARK-21565] Propagate metadata in attribute replacement. [SPARK-21565][SS] Propagate metadata in attribute replacement. Aug 7, 2017
@SparkQA
Copy link

SparkQA commented Aug 7, 2017

Test build #80356 has finished for PR 18840 at commit 578e26d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Aug 7, 2017

Thanks! Merging to master and branch-2.2.

asfgit pushed a commit that referenced this pull request Aug 7, 2017
## What changes were proposed in this pull request?

Propagate metadata in attribute replacement during streaming execution. This is necessary for EventTimeWatermarks consuming replaced attributes.

## How was this patch tested?
new unit test, which was verified to fail before the fix

Author: Jose Torres <joseph-torres@databricks.com>

Closes #18840 from joseph-torres/SPARK-21565.

(cherry picked from commit cce25b3)
Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
@asfgit asfgit closed this in cce25b3 Aug 7, 2017
@jose-torres jose-torres deleted the SPARK-21565 branch September 15, 2017 08:10
MatthewRBruce pushed a commit to Shopify/spark that referenced this pull request Jul 31, 2018
## What changes were proposed in this pull request?

Propagate metadata in attribute replacement during streaming execution. This is necessary for EventTimeWatermarks consuming replaced attributes.

## How was this patch tested?
new unit test, which was verified to fail before the fix

Author: Jose Torres <joseph-torres@databricks.com>

Closes apache#18840 from joseph-torres/SPARK-21565.

(cherry picked from commit cce25b3)
Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants