[ 
https://issues.apache.org/jira/browse/SPARK-49501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun closed SPARK-49501.
---------------------------------

> 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
>            Assignee: Christos Stavrakakis
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.4, 4.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to