Skip to content

Conversation

@arunmahadevan
Copy link
Contributor

What changes were proposed in this pull request?

SPARK-24073 renames DataReaderFactory -> InputPartition and DataReader -> InputPartitionReader. Some classes still reflects the old name and causes confusion. This patch renames the left over classes to reflect the new interface and fixes a few comments.

How was this patch tested?

Existing unit tests.

Please review http://spark.apache.org/contributing.html before opening a pull request.

@arunmahadevan arunmahadevan changed the title SPARK-24308: Handle DataReaderFactory to InputPartition rename in left over classes [SPARK-24308][SQL] Handle DataReaderFactory to InputPartition rename in left over classes May 17, 2018
@arunmahadevan
Copy link
Contributor Author

ping @rdblue , @gatorsmile , @cloud-fan

@SparkQA
Copy link

SparkQA commented May 17, 2018

Test build #90743 has finished for PR 21355 at commit b362574.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class KafkaContinuousInputPartition(
  • case class RateStreamContinuousInputPartition(
  • class MemoryStreamInputPartition(records: Array[UnsafeRow])
  • class ContinuousMemoryStreamInputPartition(
  • class RateStreamMicroBatchInputPartition(


/**
* The overall strategy here is:
* * ContinuousMemoryStream maintains a list of records for each partition. addData() will
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove the star mark?

@cloud-fan
Copy link
Contributor

LGTM, cc @jose-torres

@SparkQA
Copy link

SparkQA commented May 18, 2018

Test build #90800 has finished for PR 21355 at commit 8bef67b.

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

@jose-torres
Copy link
Contributor

LGTM. Thanks for handling this!

@gatorsmile
Copy link
Member

Thanks! Merged to master.

@asfgit asfgit closed this in 710e4e8 May 18, 2018
jzhuge pushed a commit to jzhuge/spark that referenced this pull request Mar 7, 2019
…in left over classes

SPARK-24073 renames DataReaderFactory -> InputPartition and DataReader -> InputPartitionReader. Some classes still reflects the old name and causes confusion. This patch renames the left over classes to reflect the new interface and fixes a few comments.

Existing unit tests.

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: Arun Mahadevan <arunm@apache.org>

Closes apache#21355 from arunmahadevan/SPARK-24308.

(cherry picked from commit 710e4e8)

Conflicts:
	common/unsafe/src/main/java/org/apache/spark/unsafe/memory/MemoryLocation.java
	external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchReader.scala
	external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceSuite.scala
	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/memory.scala
	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/ContinuousMemoryStream.scala
	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/RateStreamMicroBatchReader.scala
	sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/RateSourceSuite.scala
	sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/RateSourceV2Suite.scala
jzhuge pushed a commit to jzhuge/spark that referenced this pull request Oct 15, 2019
…in left over classes

SPARK-24073 renames DataReaderFactory -> InputPartition and DataReader -> InputPartitionReader. Some classes still reflects the old name and causes confusion. This patch renames the left over classes to reflect the new interface and fixes a few comments.

Existing unit tests.

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: Arun Mahadevan <arunm@apache.org>

Closes apache#21355 from arunmahadevan/SPARK-24308.

(cherry picked from commit 710e4e8)

Conflicts:
	common/unsafe/src/main/java/org/apache/spark/unsafe/memory/MemoryLocation.java
	external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchReader.scala
	external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceSuite.scala
	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/memory.scala
	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/ContinuousMemoryStream.scala
	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/RateStreamMicroBatchReader.scala
	sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/RateSourceSuite.scala
	sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/RateSourceV2Suite.scala
otterc pushed a commit to linkedin/spark that referenced this pull request Mar 22, 2023
…in left over classes

SPARK-24073 renames DataReaderFactory -> InputPartition and DataReader -> InputPartitionReader. Some classes still reflects the old name and causes confusion. This patch renames the left over classes to reflect the new interface and fixes a few comments.

Existing unit tests.

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: Arun Mahadevan <arunm@apache.org>

Closes apache#21355 from arunmahadevan/SPARK-24308.

Ref: LIHADOOP-48531
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

Successfully merging this pull request may close these issues.

5 participants