You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/09/03 14:26:00 UTC
[jira] [Updated] (SPARK-49501) Catalog createTable API is double-escaping paths
[ https://issues.apache.org/jira/browse/SPARK-49501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-49501:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> 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