Skip to main content

datafusion_doc/
udwf.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
3// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
4
5// Window UDF doc sections for use in public documentation
6pub mod window_doc_sections {
7    use crate::DocSection;
8
9    pub fn doc_sections() -> Vec<DocSection> {
10        vec![
11            DOC_SECTION_AGGREGATE,
12            DOC_SECTION_RANKING,
13            DOC_SECTION_ANALYTICAL,
14        ]
15    }
16
17    pub const DOC_SECTION_AGGREGATE: DocSection = DocSection {
18        include: true,
19        label: "Aggregate Functions",
20        description: Some("All aggregate functions can be used as window functions."),
21    };
22
23    pub const DOC_SECTION_RANKING: DocSection = DocSection {
24        include: true,
25        label: "Ranking Functions",
26        description: None,
27    };
28
29    pub const DOC_SECTION_ANALYTICAL: DocSection = DocSection {
30        include: true,
31        label: "Analytical Functions",
32        description: None,
33    };
34}