Skip to content

[SPARK-44010][PYTHON][SS][MINOR] Python StreamingQueryProgress rowsPerSecond type fix#41522

Closed
WweiL wants to merge 2 commits intoapache:masterfrom
WweiL:SPARK-44010-sqp-type-fix
Closed

[SPARK-44010][PYTHON][SS][MINOR] Python StreamingQueryProgress rowsPerSecond type fix#41522
WweiL wants to merge 2 commits intoapache:masterfrom
WweiL:SPARK-44010-sqp-type-fix

Conversation

@WweiL
Copy link
Contributor

@WweiL WweiL commented Jun 9, 2023

What changes were proposed in this pull request?

Fix Python StreamingQueryProgress' inputRowsPerSecond and processedRowsPerSecond's return type. They should be float according to org/apache/spark/sql/streaming/progress.scala. Also lifted initialization of the two values to initializer, to align with the implementation of SourceProgress

Why are the changes needed?

Better typed API

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing unit tests

@HyukjinKwon HyukjinKwon changed the title [SPARK-44010][Python][SS][Minor] Python StreamingQueryProgress rowsPerSecond type fix [SPARK-44010][PYTHON][SS][MINOR] Python StreamingQueryProgress rowsPerSecond type fix Jun 9, 2023
@HyukjinKwon
Copy link
Member

Merged to master.

czxm pushed a commit to czxm/spark that referenced this pull request Jun 12, 2023
…rSecond type fix

### What changes were proposed in this pull request?

Fix Python StreamingQueryProgress' inputRowsPerSecond and processedRowsPerSecond's return type. They should be float according to `org/apache/spark/sql/streaming/progress.scala`. Also lifted initialization of the two values to initializer, to align with the implementation of `SourceProgress`

### Why are the changes needed?

Better typed API

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Existing unit tests

Closes apache#41522 from WweiL/SPARK-44010-sqp-type-fix.

Authored-by: Wei Liu <wei.liu@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants