You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Christos Stavrakakis (Jira)" <ji...@apache.org> on 2024/09/03 14:18:00 UTC
[jira] [Created] (SPARK-49501) Catalog createTable API is double-escaping paths
Christos Stavrakakis created SPARK-49501:
--------------------------------------------
Summary: Catalog createTable API is double-escaping paths
Key: SPARK-49501
URL: https://issues.apache.org/jira/browse/SPARK-49501
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 4.0.0
Reporter: Christos Stavrakakis
Creating an external table using {{spark.catalog.createTable}} results in incorrect escaping of special chars in paths.
Consider the following code:
{{{{{}spark.catalog.createTable({}}}{{{}"testTable", source = "parquet", schema = new StructType().add("id", "int"), description = "", options = Map("path" -> "/tmp/test table")){}}}}}
The above call creates a table that is stored in {{/tmp/test%20table}} instead of {{{}/tmp/test table{}}}. Note that this behaviour is different from the SQL API, e.g. {{create table testTable(id int) using parquet location '/tmp/test table'}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org