cj-zhukov commented on code in PR #26934:
URL: https://github.com/apache/datafusion/pull/26934#discussion_r4630212067
##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1894,6 +1896,73 @@ impl SessionContext {
.build()?,
))
}
+
+ /// Create a [`DataFrame`] from named Arrow arrays.
+ ///
+ /// Each `(name, array)` pair becomes one column. The field's nullability
+ /// is derived from the array: a column is non-nullable when its array is
+ /// guaranteed to contain no nulls (see [`Array::is_nullable`]), which lets
+ /// the optimizer simplify expressions such as `col IS NULL` on it.
+ ///
+ /// The arrays are wrapped in a single [`RecordBatch`] and read through
+ /// [`Self::read_batch`], so the returned `DataFrame` runs in this session
+ /// and sees its registered functions, tables, configuration and runtime,
Review Comment:
I agree with you
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]