You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This matches PostgreSQL's pg_range table columns
725
+
let schema = Arc::new(Schema::new(vec![
726
+
Field::new("rngtypid",DataType::Int32,false),// OID of the range type
727
+
Field::new("rngsubtype",DataType::Int32,false),// OID of the element type (subtype) of this range type
728
+
Field::new("rngmultitypid",DataType::Int32,false),// OID of the multirange type for this range type
729
+
Field::new("rngcollation",DataType::Int32,false),// OID of the collation used for range comparisons, or zero if none
730
+
Field::new("rngsubopc",DataType::Int32,false),// OID of the subtype's operator class used for range comparisons
731
+
Field::new("rngcanonical",DataType::Int32,false),// OID of the function to convert a range value into canonical form, or zero if none
732
+
Field::new("rngsubdiff",DataType::Int32,false),// OID of the function to return the difference between two element values as double precision, or zero if none
733
+
]));
734
+
735
+
// Create memory table with schema
736
+
let provider = MemTable::try_new(schema,vec![]).unwrap();
737
+
Arc::new(provider)
738
+
}
739
+
718
740
/// Create a populated pg_proc table with standard PostgreSQL functions
0 commit comments