diff --git a/src/postgres/mod.rs b/src/postgres/mod.rs index b570797..4da02ca 100644 --- a/src/postgres/mod.rs +++ b/src/postgres/mod.rs @@ -14,7 +14,7 @@ use crate::postgres::math_udfs::{ }; use crate::postgres::network_udfs::{ broadcast, family, host, hostmask, inet_merge, inet_same_family, MaskLen, Netmask, Network, - SetMasklen, + SetMaskLen, }; mod math_udfs; @@ -52,7 +52,7 @@ fn register_network_udfs(ctx: &SessionContext) -> Result<()> { ctx.register_udf(ScalarUDF::from(MaskLen::new())); ctx.register_udf(ScalarUDF::from(Netmask::new())); ctx.register_udf(ScalarUDF::from(Network::new())); - ctx.register_udf(ScalarUDF::from(SetMasklen::new())); + ctx.register_udf(ScalarUDF::from(SetMaskLen::new())); Ok(()) } diff --git a/src/postgres/network_udfs.rs b/src/postgres/network_udfs.rs index 35c63d1..26bfe68 100644 --- a/src/postgres/network_udfs.rs +++ b/src/postgres/network_udfs.rs @@ -435,11 +435,11 @@ impl ScalarUDFImpl for Network { /// If the input is a CIDR, Address bits to the right of the new netmask are set to zero. /// Returns NULL if any of the columns contain NULL values. #[derive(Debug)] -pub struct SetMasklen { +pub struct SetMaskLen { signature: Signature, } -impl SetMasklen { +impl SetMaskLen { pub fn new() -> Self { Self { signature: Signature::exact(vec![Utf8, Int64], Volatility::Immutable), @@ -447,7 +447,7 @@ impl SetMasklen { } } -impl ScalarUDFImpl for SetMasklen { +impl ScalarUDFImpl for SetMaskLen { fn as_any(&self) -> &dyn std::any::Any { self }