Hi all,
I am trying to connect my spanner, it’s done but when I reading/writing to table then getting error like (String literal issue.
For I got the issue is “columns_name” vs columns_name
. The problem is how I can create custom jdbc dialect in pyspark.
Connection is done my spanner is connected. Reading and writing is issue.
Is issue is “” vs ``.
Can you help me to solve the issue.
2.I am using cloud spanner product,
I have created my spanner instance, MySQL/postgress SQL database and table.
I have connection of cloud spanner instance database through cloud spanner JDBC driver in pyspark.
But problem is that when I am trying to read/write operation then getting error “String literal issue”.
Like if table column name is id then error getting: String literal issue "id"/ .
As I research on that and getting that cloud spanner database table column name look like id .
But in pyspark dataframe table column name is “id”.
Maybe `` backticks vs double coat “” creating problem.
Can you provide best way how I can apply read/write operation through JDBC driver in pyspark