aaron-ang commented on code in PR #19367: URL: https://github.com/apache/datafusion/pull/19367#discussion_r2625307880
########## datafusion/core/src/bin/print_metric_docs.rs: ########## @@ -0,0 +1,172 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +//! Print metrics documentation collected via `DocumentedMetrics`/`DocumentedExec`. +//! Called from doc generation scripts to refresh `docs/source/user-guide/metrics.md`. + +use std::{fs, path::PathBuf}; + +use datafusion_doc::metric_doc_sections::{ + ExecDoc, MetricDoc, MetricDocPosition, exec_docs, metric_docs, +}; +use datafusion_execution as _; // Link metrics defined in execution crate. +use datafusion_physical_plan as _; // Link metrics and execs defined in physical plan. Review Comment: I'm not sure if there's a cleaner way to implement this -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
