You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by dongjoon-hyun <gi...@git.apache.org> on 2016/07/08 21:10:44 UTC

[GitHub] spark pull request #14107: [SPARK-16387][SQL] JDBC Writer should use dialect...

GitHub user dongjoon-hyun opened a pull request:

    https://github.com/apache/spark/pull/14107

    [SPARK-16387][SQL] JDBC Writer should use dialect to quote field names.

    ## What changes were proposed in this pull request?
    
    Currently, JDBC Writer uses dialects to get datatypes, but doesn't to quote field names. This PR uses dialects to do that.
    
    **Reported Error Scenario (MySQL case)**
    ```scala
    scala> val url="jdbc:mysql://localhost:3306/temp"
    scala> val prop = new java.util.Properties
    scala> prop.setProperty("user","root")
    scala> spark.createDataset(Seq("a","b","c")).toDF("order")
    scala> df.write.mode("overwrite").jdbc(url, "temptable", prop)
    ...MySQLSyntaxErrorException: ... near 'order TEXT )
    ```
    
    ## How was this patch tested?
    
    Pass the Jenkins tests and manually do the above case.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dongjoon-hyun/spark SPARK-16387

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14107.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14107
    
----
commit 4f63716ab79811f10a129781be48537610fcd489
Author: Dongjoon Hyun <do...@apache.org>
Date:   2016-07-08T20:54:10Z

    [SPARK-16387][SQL] JDBC Writer should use dialect to quote fieldnames.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #14107: [SPARK-16387][SQL] JDBC Writer should use dialect to quo...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/14107
  
    **[Test build #61996 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61996/consoleFull)** for PR 14107 at commit [`4f63716`](https://github.com/apache/spark/commit/4f63716ab79811f10a129781be48537610fcd489).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #14107: [SPARK-16387][SQL] JDBC Writer should use dialect to quo...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/14107
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/61996/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #14107: [SPARK-16387][SQL] JDBC Writer should use dialect...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/14107


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #14107: [SPARK-16387][SQL] JDBC Writer should use dialect to quo...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/14107
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #14107: [SPARK-16387][SQL] JDBC Writer should use dialect to quo...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the issue:

    https://github.com/apache/spark/pull/14107
  
    Merging in master/2.0.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #14107: [SPARK-16387][SQL] JDBC Writer should use dialect to quo...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/14107
  
    **[Test build #61996 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61996/consoleFull)** for PR 14107 at commit [`4f63716`](https://github.com/apache/spark/commit/4f63716ab79811f10a129781be48537610fcd489).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #14107: [SPARK-16387][SQL] JDBC Writer should use dialect to quo...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/14107
  
    Oh, super fast! Thank you.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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