mirror of
https://github.com/langchain-ai/datafusion.git
synced 2026-07-15 13:45:37 -04:00
python: fix generated table name in dataframe creation (#1078)
This commit is contained in:
@@ -83,8 +83,9 @@ impl ExecutionContext {
|
||||
errors::wrap(MemTable::try_new(partitions[0][0].schema(), partitions))?;
|
||||
|
||||
// generate a random (unique) name for this table
|
||||
let name = rand::thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
// table name cannot start with numeric digit
|
||||
let name = std::iter::once('c')
|
||||
.chain(rand::thread_rng().sample_iter(&Alphanumeric))
|
||||
.take(10)
|
||||
.collect::<String>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user