smallzhongfeng commented on issue #862:
URL: https://github.com/apache/arrow-ballista/issues/862#issuecomment-1669722297

   ```
   use datafusion::arrow::datatypes::DataType;
   use datafusion::datasource::file_format::parquet::DEFAULT_PARQUET_EXTENSION;
   use ballista::prelude::{BallistaConfig, BallistaContext, Result};
   use datafusion::prelude::{CsvReadOptions, ParquetReadOptions, 
SessionContext};
   
   #[tokio::main]
   async fn main() -> Result<()> {
       let config = BallistaConfig::builder()
           .set("ballista.shuffle.partitions", "1")
           .build()?;
   
       let ctx = BallistaContext::standalone(&config, 2).await?;
   
       let options = ParquetReadOptions {
           file_extension: DEFAULT_PARQUET_EXTENSION,
           table_partition_cols: vec![("date".to_string(), DataType::Utf8)],
           parquet_pruning: Some(false),
           skip_metadata: Some(true),
       };
       let path= format!("tmp");
   
       let arc = ctx.read_parquet(&path, options).await?;
       println!("{}", arc.schema());
       arc.clone().select_columns(&["String", "date"]).unwrap();
       arc.clone().show().await?;
       Ok(())
   }
   
   ```
   This case also fail, so is it currently not supported to create a partition 
table?
   


-- 
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