This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new ca23fb4f5 fix schema nullability for `information_schema` schema
(#2804)
ca23fb4f5 is described below
commit ca23fb4f5f4569d685a4e2e2f1da8f723f58a717
Author: Andrew Lamb <[email protected]>
AuthorDate: Tue Jun 28 02:47:30 2022 -0400
fix schema nullability for `information_schema` schema (#2804)
---
datafusion/core/src/catalog/information_schema.rs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/datafusion/core/src/catalog/information_schema.rs
b/datafusion/core/src/catalog/information_schema.rs
index 7df9aec95..ff5d12e7f 100644
--- a/datafusion/core/src/catalog/information_schema.rs
+++ b/datafusion/core/src/catalog/information_schema.rs
@@ -454,16 +454,16 @@ impl From<InformationSchemaColumnsBuilder> for MemTable {
Field::new("table_name", DataType::Utf8, false),
Field::new("column_name", DataType::Utf8, false),
Field::new("ordinal_position", DataType::UInt64, false),
- Field::new("column_default", DataType::Utf8, false),
+ Field::new("column_default", DataType::Utf8, true),
Field::new("is_nullable", DataType::Utf8, false),
Field::new("data_type", DataType::Utf8, false),
- Field::new("character_maximum_length", DataType::UInt64, false),
- Field::new("character_octet_length", DataType::UInt64, false),
- Field::new("numeric_precision", DataType::UInt64, false),
- Field::new("numeric_precision_radix", DataType::UInt64, false),
- Field::new("numeric_scale", DataType::UInt64, false),
- Field::new("datetime_precision", DataType::UInt64, false),
- Field::new("interval_type", DataType::Utf8, false),
+ Field::new("character_maximum_length", DataType::UInt64, true),
+ Field::new("character_octet_length", DataType::UInt64, true),
+ Field::new("numeric_precision", DataType::UInt64, true),
+ Field::new("numeric_precision_radix", DataType::UInt64, true),
+ Field::new("numeric_scale", DataType::UInt64, true),
+ Field::new("datetime_precision", DataType::UInt64, true),
+ Field::new("interval_type", DataType::Utf8, true),
]);
let InformationSchemaColumnsBuilder {