Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11731

[Rust][DataFusion] Crash on parsing sql query with Cyrillic letters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 4.0.0
    • None
    • Rust - DataFusion
    • None

    Description

      Hello,

      I'm using DataFusion to query data from my csv file. The file contains columns with Cyrillic letters and when I write query like this one, I get a crash.

      Code sample:

      let mut ctx = ExecutionContext::new();
      let csv_file = CsvFile::try_new(args.input.as_path().to_str().unwrap(), CsvReadOptions::new())?;
      ctx.register_table("transactions", Arc::new(csv_file));
      let df = ctx.sql("SELECT \"ДАТА\" FROM transactions")?;
      let results = df.collect().await?;
      log::info!("result: {:?}", results);
      

      Stack trace: StackTrace.txt

      Attachments

        1. StackTrace.txt
          20 kB
          AlexNav73

        Activity

          People

            Unassigned Unassigned
            AlexNav73 AlexNav73
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: