Skip to content

[SPARK-23238][SQL] Externalize SQLConf configurations exposed in documentation #20403

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

Closed
wants to merge 4 commits into from

Conversation

HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jan 26, 2018

What changes were proposed in this pull request?

This PR proposes to expose few internal configurations found in the documentation.

Also it fixes the description for spark.sql.execution.arrow.enabled.
It's quite self-explanatory.

How was this patch tested?

N/A

@HyukjinKwon
Copy link
Member Author

cc @ueshin and @BryanCutler, mind taking a look please?

@ueshin
Copy link
Member

ueshin commented Jan 26, 2018

LGTM.

@SparkQA
Copy link

SparkQA commented Jan 26, 2018

Test build #86693 has finished for PR 20403 at commit 4899e33.

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

@HyukjinKwon
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Jan 26, 2018

Test build #86701 has finished for PR 20403 at commit 4899e33.

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

@ueshin
Copy link
Member

ueshin commented Jan 26, 2018

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Jan 26, 2018

Test build #86705 has finished for PR 20403 at commit 4899e33.

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

@HyukjinKwon
Copy link
Member Author

retest this please

@@ -1045,9 +1045,10 @@ object SQLConf {
buildConf("spark.sql.execution.arrow.enabled")
.internal()
.doc("Make use of Apache Arrow for columnar data transfers. Currently available " +
Copy link
Member

Choose a reason for hiding this comment

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

When true, make use of

@@ -1045,9 +1045,10 @@ object SQLConf {
buildConf("spark.sql.execution.arrow.enabled")
.internal()
Copy link
Member

@gatorsmile gatorsmile Jan 26, 2018

Choose a reason for hiding this comment

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

This conf will be mentioned in the doc #19575. I think this is not qualified as an internal conf.

Copy link
Member

Choose a reason for hiding this comment

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

Could you change it in this PR and use this JIRA number https://issues.apache.org/jira/browse/SPARK-23238

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup.

@HyukjinKwon HyukjinKwon changed the title [MINOR][PYTHON] Minor doc correction for 'spark.sql.execution.arrow.enabled' [SPARK-23238][PYTHON] Minor doc correction for 'spark.sql.execution.arrow.enabled' Jan 26, 2018
@HyukjinKwon HyukjinKwon changed the title [SPARK-23238][PYTHON] Minor doc correction for 'spark.sql.execution.arrow.enabled' [SPARK-23238][PYTHON] Externalize SQLConf spark.sql.execution.arrow.enabled Jan 26, 2018
Copy link
Member

@BryanCutler BryanCutler left a comment

Choose a reason for hiding this comment

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

LGTM

@gatorsmile
Copy link
Member

LGTM

@SparkQA
Copy link

SparkQA commented Jan 26, 2018

Test build #86712 has finished for PR 20403 at commit 4899e33.

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

@SparkQA
Copy link

SparkQA commented Jan 26, 2018

Test build #86716 has finished for PR 20403 at commit 1f4d288.

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

@BryanCutler
Copy link
Member

this has been failing due to #19892 which was recently reverted

@BryanCutler
Copy link
Member

jenkins retest this please

@SparkQA
Copy link

SparkQA commented Jan 26, 2018

Test build #86726 has started for PR 20403 at commit 1f4d288.

@HyukjinKwon
Copy link
Member Author

retest this please

@viirya
Copy link
Member

viirya commented Jan 27, 2018

LGTM

@gatorsmile
Copy link
Member

retest this please

@gatorsmile
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Jan 27, 2018

Test build #86730 has finished for PR 20403 at commit 1f4d288.

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

@viirya
Copy link
Member

viirya commented Jan 27, 2018

retest this please.

@SparkQA
Copy link

SparkQA commented Jan 28, 2018

Test build #86737 has finished for PR 20403 at commit 1f4d288.

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

"for use with pyspark.sql.DataFrame.toPandas, and " +
"pyspark.sql.SparkSession.createDataFrame when its input is a Pandas DataFrame. " +
"The following data types are unsupported: " +
"MapType, ArrayType of TimestampType, and nested StructType.")
.booleanConf
.createWithDefault(false)
Copy link
Member

Choose a reason for hiding this comment

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

spark.sql.execution.arrow.maxRecordsPerBatch is also mentioned in the doc change at #19575. Shall we also externalize it?

Copy link
Member Author

@HyukjinKwon HyukjinKwon Jan 28, 2018

Choose a reason for hiding this comment

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

Yup. Let me update spark.sql.inMemoryColumnarStorage.compressed and spark.sql.inMemoryColumnarStorage.batchSize too. These are also exposed but internals.

@HyukjinKwon HyukjinKwon changed the title [SPARK-23238][PYTHON] Externalize SQLConf spark.sql.execution.arrow.enabled [SPARK-23238][SQL] Externalize SQLConf spark.sql.execution.arrow.enabled Jan 28, 2018
@SparkQA
Copy link

SparkQA commented Jan 28, 2018

Test build #86742 has finished for PR 20403 at commit 0c05526.

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

@viirya
Copy link
Member

viirya commented Jan 28, 2018

Let's also update the PR title.

@HyukjinKwon HyukjinKwon changed the title [SPARK-23238][SQL] Externalize SQLConf spark.sql.execution.arrow.enabled [SPARK-23238][SQL] Externalize SQLConf configurations exposed in documentation Jan 28, 2018
.booleanConf
.createWithDefault(false)

val ARROW_EXECUTION_MAX_RECORDS_PER_BATCH =
buildConf("spark.sql.execution.arrow.maxRecordsPerBatch")
.internal()
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure about conf. https://github.com/apache/spark/pull/19575/files#r164252424

If we want to merge this PR now, maybe revert this change?

Copy link
Member

Choose a reason for hiding this comment

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

We can externalize this conf in that PR #19575, if we believe this conf is the one we will use in the long term.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense. Let me take this out. Is this only one you are concerned of for now?

@gatorsmile
Copy link
Member

LGTM

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

LGTM

@SparkQA
Copy link

SparkQA commented Jan 29, 2018

Test build #86749 has finished for PR 20403 at commit fd7f5c0.

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

asfgit pushed a commit that referenced this pull request Jan 29, 2018
…mentation

## What changes were proposed in this pull request?

This PR proposes to expose few internal configurations found in the documentation.

Also it fixes the description for `spark.sql.execution.arrow.enabled`.
It's quite self-explanatory.

## How was this patch tested?

N/A

Author: hyukjinkwon <gurwls223@gmail.com>

Closes #20403 from HyukjinKwon/minor-doc-arrow.

(cherry picked from commit 39d2c6b)
Signed-off-by: hyukjinkwon <gurwls223@gmail.com>
@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented Jan 29, 2018

Merged to master and branch-2.3.

Thanks @ueshin, @gatorsmile, @BryanCutler, @felixcheung and @viirya.

@asfgit asfgit closed this in 39d2c6b Jan 29, 2018
@HyukjinKwon HyukjinKwon deleted the minor-doc-arrow branch October 16, 2018 12:44
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.

7 participants