Skip to content

Conversation

maver1ck
Copy link
Contributor

@maver1ck maver1ck commented Jul 3, 2017

What changes were proposed in this pull request?

FIX for https://issues.apache.org/jira/browse/SPARK-21287

How was this patch tested?

Existing automated tests + manual tests.

@maver1ck maver1ck changed the title [SPARK-21287] Ability to use Integer.MIN_VALUE as a fetchSize [SPARK-21287][SQL] Ability to use Integer.MIN_VALUE as a fetchSize Jul 3, 2017
@srowen
Copy link
Member

srowen commented Jul 3, 2017

See JIRA; I don't think we should allow this.

@SparkQA
Copy link

SparkQA commented Jul 3, 2017

Test build #79100 has finished for PR 18515 at commit 97b6d7b.

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

val fetchSize = {
val size = parameters.getOrElse(JDBC_BATCH_FETCH_SIZE, "0").toInt
require(size >= 0,
require(size >= 0 || size == Integer.MIN_VALUE,
Copy link
Member

Choose a reason for hiding this comment

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

It does not make sense to the other data sources except MySQL. If needed, we can introduce a dialect specific checking APIs in JdbcDialect.scala

Copy link
Member

Choose a reason for hiding this comment

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

+1 for @gatorsmile 's suggestion.

@gatorsmile
Copy link
Member

@maver1ck Any update?

@SparkQA
Copy link

SparkQA commented Sep 6, 2017

Test build #81467 has finished for PR 18515 at commit 97b6d7b.

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

srowen added a commit to srowen/spark that referenced this pull request Sep 12, 2017
@srowen srowen mentioned this pull request Sep 12, 2017
@asfgit asfgit closed this in dd88fa3 Sep 13, 2017
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