Skip to content

[RUST][Datafusion] What causes "Error: Execution("file size of 4 is less than footer")" error? #3800

@Miyake-Diogo

Description

@Miyake-Diogo

When I Try to read a CSV and Write as Parquet, compiler raises this errror: Error: Execution("file size of 4 is less than footer").
I didn't found anything on docs and internetm, about it ...
My code:

use datafusion::prelude::*;

#[tokio::main]
async fn main() -> datafusion::error::Result<()> {
  let ctx: SessionContext = SessionContext::new();
  let raw_covid_path: &str = "data/minilake/raw/covid/owid-covid-data.csv";
  
  let covid_df = ctx.read_csv(raw_covid_path,  
                                  CsvReadOptions::new()).await?;
  covid_df.write_parquet(stage_covid_path,None).await?;
  Ok(())
  }

Covid Dataset is located in this link

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions