spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Rose (JIRA)" <>
Subject [jira] [Created] (SPARK-14460) DataFrameWriter JDBC doesn't Quote/Escape column names
Date Thu, 07 Apr 2016 17:30:25 GMT
Sean Rose created SPARK-14460:

             Summary: DataFrameWriter JDBC doesn't Quote/Escape column names
                 Key: SPARK-14460
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.6.1
            Reporter: Sean Rose

When I try to write a DataFrame which contains a column with a space in it ("Patient Address"),
I get an error: java.sql.BatchUpdateException: Incorrect syntax near 'Address'

I believe the issue is that JdbcUtils.insertStatement isn't quoting/escaping column names.
JdbcDialect has the "quoteIdentifier" method, which could be called.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message