Skip to content

Commit 0cd0ce6

Browse files
committed
Use TypeSignature::Nullary for functions with no arguments since datafusion 44.0.0
1 parent 29c57ac commit 0cd0ce6

File tree

1 file changed

+3
-3
lines changed
  • src/sql/postgresql/functions

1 file changed

+3
-3
lines changed

src/sql/postgresql/functions/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl CurrentCatalog {
3939
pub fn new(context: Arc<SqlContext>) -> Self {
4040
Self {
4141
context,
42-
signature: Signature::new(TypeSignature::Any(0), Volatility::Stable),
42+
signature: Signature::new(TypeSignature::Nullary, Volatility::Stable),
4343
aliases: vec!["current_database".to_string()],
4444
}
4545
}
@@ -82,7 +82,7 @@ impl CurrentUser {
8282
pub fn new(context: Arc<SqlContext>) -> Self {
8383
Self {
8484
context,
85-
signature: Signature::new(TypeSignature::Any(0), Volatility::Stable),
85+
signature: Signature::new(TypeSignature::Nullary, Volatility::Stable),
8686
aliases: vec!["current_role".to_string(), "user".to_string()],
8787
}
8888
}
@@ -123,7 +123,7 @@ pub struct InetClientPort {
123123

124124
impl InetClientPort {
125125
pub fn new(context: Arc<SqlContext>) -> Self {
126-
Self { context, signature: Signature::new(TypeSignature::Any(0), Volatility::Stable), aliases: vec![] }
126+
Self { context, signature: Signature::new(TypeSignature::Nullary, Volatility::Stable), aliases: vec![] }
127127
}
128128
}
129129

0 commit comments

Comments
 (0)