Jefffrey commented on issue #9269:
URL: 
https://github.com/apache/arrow-datafusion/issues/9269#issuecomment-2039365128

   Another case:
   
   ```sql
   DataFusion CLI v37.0.0
   ❯ create external table test123(a string, ```a=b``` string) stored as 
parquet location '/tmp/test123/' partitioned by (`a=b`);
   0 row(s) fetched.
   Elapsed 0.002 seconds.
   
   ❯ insert into test123 select 'a', 'b';
   +-------+
   | count |
   +-------+
   | 1     |
   +-------+
   1 row(s) fetched.
   Elapsed 0.007 seconds.
   
   ❯ select * from test123;
   thread 'main' panicked at 
/home/jeffrey/Code/arrow-datafusion/datafusion/core/src/datasource/physical_plan/file_scan_config.rs:261:54:
   index out of bounds: the len is 0 but the index is 0
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   datafusion-cli$
   ```
   
   Files exist on disk:
   
   ```shell
   datafusion-cli$ ll /tmp/test123/
   total 0
   drwxr-xr-x   2 jeffrey jeffrey   60 Apr  5 20:43 '%60a=b%60=b'/
   drwxrwxrwt 119 root    root    2.6K Apr  5 20:43  ../
   drwxr-xr-x   3 jeffrey jeffrey   60 Apr  5 20:43  ./
   datafusion-cli$ ll /tmp/test123/\%60a=b\%60=b/
   total 4.0K
   -rw-r--r-- 1 jeffrey jeffrey 282 Apr  5 20:43 33T7kTcVyecaVk07.parquet
   drwxr-xr-x 3 jeffrey jeffrey  60 Apr  5 20:43 ../
   drwxr-xr-x 2 jeffrey jeffrey  60 Apr  5 20:43 ./
   datafusion-cli$
   ```
   
   Note I had to get cheeky with the column and partition names, as just this 
didn't work:
   
   ```sql
   DataFusion CLI v37.0.0
   ❯ create external table test123(a string, `a=b` string) stored as parquet 
location '/tmp/test123/' partitioned by (`a=b`);
   Arrow error: Schema error: Unable to get field named "`a=b`". Valid fields: 
["a", "a=b"]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to