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

Function bind_to_settings

datafusion-cli/tests/cli_integration.rs:254–273  ·  view source on GitHub ↗
(snapshot_name: &str)

Source from the content-addressed store, hash-verified

252}
253
254fn bind_to_settings(snapshot_name: &str) -> SettingsBindDropGuard {
255 let mut settings = make_settings();
256
257 settings.set_snapshot_suffix(snapshot_name);
258
259 settings.add_filter(
260 r"[^\s]+\#\d+\(can spill: (true|false)\) consumed .*?B, peak .*?B",
261 "Consumer(can spill: bool) consumed XB, peak XB",
262 );
263 settings.add_filter(
264 r"Error: Failed to allocate additional .*? for .*? with .*? already allocated for this reservation - .*? remain available for the total memory pool: '.*?'",
265 "Error: Failed to allocate ",
266 );
267 settings.add_filter(
268 r"Resources exhausted: Failed to allocate additional .*? for .*? with .*? already allocated for this reservation - .*? remain available for the total memory pool: '.*?'",
269 "Resources exhausted: Failed to allocate",
270 );
271
272 settings.bind_to_scope()
273}
274
275#[test]
276fn test_cli_with_unbounded_memory_pool() {

Calls 1

make_settingsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…