MCPcopy Create free account
hub / github.com/apache/datafusion / eq

Method eq

datafusion/physical-expr/src/scalar_function.rs:183–202  ·  view source on GitHub ↗
(&self, o: &Self)

Source from the content-addressed store, hash-verified

181
182impl PartialEq for ScalarFunctionExpr {
183 fn eq(&self, o: &Self) -> bool {
184 if std::ptr::eq(self, o) {
185 // The equality implementation is somewhat expensive, so let's short-circuit when possible.
186 return true;
187 }
188 let Self {
189 fun,
190 name,
191 args,
192 return_field,
193 config_options,
194 } = self;
195 fun.eq(&o.fun)
196 && name.eq(&o.name)
197 && args.eq(&o.args)
198 && return_field.eq(&o.return_field)
199 && (Arc::ptr_eq(config_options, &o.config_options)
200 || sorted_config_entries(config_options)
201 == sorted_config_entries(&o.config_options))
202 }
203}
204impl Eq for ScalarFunctionExpr {}
205impl Hash for ScalarFunctionExpr {

Callers

nothing calls this directly

Calls 2

eqFunction · 0.85
sorted_config_entriesFunction · 0.70

Tested by

no test coverage detected