You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/11/28 14:59:31 UTC

[GitHub] [spark] MaxGekk opened a new pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

MaxGekk opened a new pull request #30526:
URL: https://github.com/apache/spark/pull/30526


   ### What changes were proposed in this pull request?
   Change the comments for `SQLContext.tables()` to "The returned DataFrame has three columns, database, tableName and isTemporary".
   
   ### Why are the changes needed?
   Currently, the comment mentions only 2 columns but `tables()` returns 3 columns actually:
   ```scala
   scala> spark.range(10).createOrReplaceTempView("view1")
   scala> val tables = spark.sqlContext.tables()
   tables: org.apache.spark.sql.DataFrame = [database: string, tableName: string ... 1 more field]
   
   scala> tables.printSchema
   root
    |-- database: string (nullable = false)
    |-- tableName: string (nullable = false)
    |-- isTemporary: boolean (nullable = false)
   
   
   scala> tables.show
   +--------+---------+-----------+
   |database|tableName|isTemporary|
   +--------+---------+-----------+
   | default|       t1|      false|
   | default|       t2|      false|
   | default|      ymd|      false|
   |        |    view1|       true|
   +--------+---------+-----------+
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   By running `./dev/scalastyle`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735281664


   **[Test build #131907 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/131907/testReport)** for PR 30526 at commit [`5e6ced9`](https://github.com/apache/spark/commit/5e6ced9cf9f6bda2b24650d33a7a0e9e427aa6c5).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735253269






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] MaxGekk commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
MaxGekk commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735447200


   @dongjoon-hyun Could you look at the small changes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735243602


   **[Test build #131907 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/131907/testReport)** for PR 30526 at commit [`5e6ced9`](https://github.com/apache/spark/commit/5e6ced9cf9f6bda2b24650d33a7a0e9e427aa6c5).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735447527


   Sure, @MaxGekk !


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735285574






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735448087


   Merged to master/3.0/2.4.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735285574






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735243602


   **[Test build #131907 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/131907/testReport)** for PR 30526 at commit [`5e6ced9`](https://github.com/apache/spark/commit/5e6ced9cf9f6bda2b24650d33a7a0e9e427aa6c5).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #30526:
URL: https://github.com/apache/spark/pull/30526#issuecomment-735253269






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun closed pull request #30526: [SPARK-33585][SQL][DOCS] Fix the comment for `SQLContext.tables()` and mention the `database` column

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun closed pull request #30526:
URL: https://github.com/apache/spark/pull/30526


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org