Skip to main content

arrow_stream_table_sql

Function arrow_stream_table_sql 

Source
pub fn arrow_stream_table_sql(table_name: &str) -> String
Expand description

SQL table-expression for a registered Arrow stream name.

Registered names are exposed as the ArrowStream table function, not as ordinary tables. Use this when building INSERT ... SELECT or ad-hoc queries.

ยงExample

use chdb_rust::arrow_stream::arrow_stream_table_sql;

let sql = format!(
    "INSERT INTO dest SELECT * FROM {}",
    arrow_stream_table_sql("my_batch")
);
assert_eq!(sql, "INSERT INTO dest SELECT * FROM ArrowStream('my_batch')");