Skip to main content
Skip to main content

Docs Contribute

Doris Documentation Contributions

Here we mainly introduce how to modify and contribute to Doris' documents.

How to submit your document modification, please refer to

Contribute to Doris

Code Submission Guidelines

Documents of historical versions can be submitted directly on apache/doris-website PR, if it is the latest version, it needs to be in [apache/doris-website] (https://github.com/apache/doris-website) and the apache/doris codebase at the same time commit changes.

The following introduces the directory structure of the Doris Website site to facilitate users to modify and submit documents

Doris Website Directory Structure​

.
β”œβ”€β”€ README.md
β”œβ”€β”€ babel.config.js
β”œβ”€β”€ blog
β”‚ β”œβ”€β”€ 1.1 Release.md
β”‚ β”œβ”€β”€ Annoucing.md
β”‚ β”œβ”€β”€ jd.md
β”‚ β”œβ”€β”€ meituan.md
β”‚ β”œβ”€β”€ release-note-0.15.0.md
β”‚ β”œβ”€β”€ release-note-1.0.0.md
β”‚ └── xiaomi.md
β”œβ”€β”€ build.sh
β”œβ”€β”€ community
β”‚ β”œβ”€β”€ design
β”‚ β”‚ β”œβ”€β”€ Flink-doris-connector-Design.md
β”‚ β”‚ β”œβ”€β”€ doris_storage_optimization.md
β”‚ β”‚ β”œβ”€β”€ grouping_sets_design.md
β”‚ β”‚ └── metadata-design.md
β”‚ β”œβ”€β”€
β”œβ”€β”€ docs
β”‚ β”œβ”€β”€ admin-manual
β”‚ β”‚ β”œβ”€β”€ cluster-management
β”‚ β”‚ β”œβ”€β”€ config
β”‚ β”‚ β”œβ”€β”€ data-admin
β”‚ β”‚ β”œβ”€β”€ http-actions
β”‚ β”‚ β”œβ”€β”€ maint-monitor
β”‚ β”‚ β”œβ”€β”€ multi-tenant.md
β”‚ β”‚ β”œβ”€β”€ optimization.md
β”‚ β”‚ β”œβ”€β”€ privilege-ldap
β”‚ β”‚ β”œβ”€β”€ query-profile.md
β”‚ β”‚ └── sql-interception.md
β”‚ β”œβ”€β”€
β”œβ”€β”€ docusaurus.config.js
β”œβ”€β”€ i18n
β”‚ └── en-US
β”‚ β”œβ”€β”€ code.json
β”‚ β”œβ”€β”€ docusaurus-plugin-content-blog
β”‚ β”œβ”€β”€ docusaurus-plugin-content-docs
β”‚ β”œβ”€β”€ docusaurus-plugin-content-docs-community
β”‚ └── docusaurus-theme-classic
β”œβ”€β”€ package.json
β”œβ”€β”€ sidebars.json
β”œβ”€β”€ sidebarsCommunity.json
β”œβ”€β”€ src
β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ Icons
β”‚ β”‚ β”œβ”€β”€ More
β”‚ β”‚ β”œβ”€β”€ PageBanner
β”‚ β”‚ └── PageColumn
β”‚ β”œβ”€β”€
β”œβ”€β”€ static
β”‚ β”œβ”€β”€ images
β”‚ β”‚ β”œβ”€β”€ Bloom_filter.svg.png
β”‚ β”‚ β”œβ”€β”€ .....
β”‚ └── js
β”‚ └── redirect.js
β”œβ”€β”€ tree.out
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ versioned_docs
β”‚ β”œβ”€β”€ version-0.15
β”‚ β”‚ β”œβ”€β”€ administrator-guide
β”‚ β”‚ β”œβ”€β”€ best-practices
β”‚ β”‚ β”œβ”€β”€ extending-doris
β”‚ β”‚ β”œβ”€β”€ getting-started
β”‚ β”‚ β”œβ”€β”€ installing
β”‚ β”‚ β”œβ”€β”€ internal
β”‚ β”‚ β”œβ”€β”€ sql-reference
β”‚ β”‚ └── sql-reference-v2
β”‚ └── version-1.0
β”‚ β”œβ”€β”€ administrator-guide
β”‚ β”œβ”€β”€ benchmark
β”‚ β”œβ”€β”€ extending-doris
β”‚ β”œβ”€β”€ faq
β”‚ β”œβ”€β”€ getting-started
β”‚ β”œβ”€β”€ installing
β”‚ β”œβ”€β”€ internal
β”‚ β”œβ”€β”€ sql-reference
β”‚ └── sql-reference-v2
β”œβ”€β”€ versioned_sidebars
β”‚ β”œβ”€β”€ version-0.15-sidebars.json
β”‚ └── version-1.0-sidebars.json
β”œβ”€β”€ versions.json

Directory structure description:

  1. Blog Directory

    • The English blog directory is under the blog in the root directory, and the English files of all blogs are placed in this directory
    • The directory of the Chinese blog is in the i18n/zh-CN/docusaurus-plugin-content-blog directory, all Chinese blog files are placed under this
    • The file names of Chinese and English blogs should be the same
  2. Document Content Directory

    • The latest version of the English document content is under docs in the root directory

    • The version of the English documentation is under versioned_docs/ in the root directory

      • This directory only holds documents from historical versions

        .
        β”œβ”€β”€ version-0.15
        β”‚ β”œβ”€β”€ administrator-guide
        β”‚ β”œβ”€β”€ best-practices
        β”‚ β”œβ”€β”€ extending-doris
        β”‚ β”œβ”€β”€ getting-started
        β”‚ β”œβ”€β”€ installing
        β”‚ β”œβ”€β”€ internal
        β”‚ β”œβ”€β”€ sql-reference
        β”‚ └── sql-reference-v2
        └── version-1.0
        β”œβ”€β”€ administrator-guide
        β”œβ”€β”€ benchmark
        β”œβ”€β”€ extending-doris
        β”œβ”€β”€ faq
        β”œβ”€β”€ getting-started
        β”œβ”€β”€ installing
        β”œβ”€β”€ internal
        β”œβ”€β”€ sql-reference
        └── sql-reference-v2
      • Versioning of English documents is under versioned_sidebars in the root directory

        .
        β”œβ”€β”€ version-0.15-sidebars.json
        └── version-1.0-sidebars.json

        The json file here is written according to the directory structure of the corresponding version

    • Chinese documentation at i18n/zh-CN/docusaurus-plugin-content-docs

      • Below this corresponds to different version directories and json files corresponding to the version, as follows

        current is the current latest version of the document. The example corresponds to version 1.1. When modifying, according to the document version to be modified, find the corresponding file modification in the corresponding directory and submit it.

        .
        β”œβ”€β”€ current
        β”‚ β”œβ”€β”€ admin-manual
        β”‚ β”œβ”€β”€ advanced
        β”‚ β”œβ”€β”€ benchmark
        β”‚ β”œβ”€β”€ data-operate
        β”‚ β”œβ”€β”€ data-table
        β”‚ β”œβ”€β”€ ecosystem
        β”‚ β”œβ”€β”€ faq
        β”‚ β”œβ”€β”€ get-starting
        β”‚ β”œβ”€β”€ install
        β”‚ β”œβ”€β”€ sql-manual
        β”‚ └── summary
        β”œβ”€β”€ current.json
        β”œβ”€β”€ version-0.15
        β”‚ β”œβ”€β”€ administrator-guide
        β”‚ β”œβ”€β”€ best-practices
        β”‚ β”œβ”€β”€ extending-doris
        β”‚ β”œβ”€β”€ getting-started
        β”‚ β”œβ”€β”€ installing
        β”‚ β”œβ”€β”€ internal
        β”‚ β”œβ”€β”€ sql-reference
        β”‚ └── sql-reference-v2
        β”œβ”€β”€ version-0.15.json
        β”œβ”€β”€ version-1.0
        β”‚ β”œβ”€β”€ administrator-guide
        β”‚ β”œβ”€β”€ benchmark
        β”‚ β”œβ”€β”€ extending-doris
        β”‚ β”œβ”€β”€ faq
        β”‚ β”œβ”€β”€ getting-started
        β”‚ β”œβ”€β”€ installing
        β”‚ β”œβ”€β”€ internal
        β”‚ β”œβ”€β”€ sql-reference
        β”‚ └── sql-reference-v2
        └── version-1.0.json
      • Version Json file

        Current.json corresponds to the Chinese translation of the latest version of the document, for example:

        {
        "version.label": {
        "message": "1.1",
        "description": "The label for version current"
        },
        "sidebar.docs.category.Getting Started": {
        "message": "Quick Start",
        "description": "The label for category Getting Started in sidebar docs"
        }
        .....
        }

        Here sidebar.docs.category.Getting Started corresponds to label in sidebars.json in the root directory

        For example, the sidebar.docs.category.Getting Started just now corresponds to the sidebar prefix and the structure in sidebars.json

        The first is sidebar + "." + docs + ".'" + [ type ] + [ label ] .

        {
        "docs": [
        {
        "type": "category",
        "label": "Getting Started",
        "items": [
        "get-starting/get-starting"
        ]
        },
        {
        "type": "category",
        "label": "Doris Introduction",
        "items": [
        "summary/basic-summary"
        ]
        }
        .....
        }
      • Support label translation in the Chinese version json file, no need to describe the document hierarchy, which is described in the sidebar.json file

      • All documents must be in English, and Chinese can only be displayed. If English is not written, you can create an empty file, otherwise Chinese documents will not be displayed. This applies to all blogs, documents, and community content

  3. Community Documentation

    This document does not distinguish between versions and is generic

    • English documentation is under the community/ directory in the root directory.

    • Chinese documentation is under i18n/zh-CN/docusaurus-plugin-content-docs-community/ directory.

    • The directory structure of community documents is controlled in the sidebarsCommunity.json file in the root directory,

    • The Chinese translation corresponding to the community documentation directory structure is in the i18n/zh-CN/docusaurus-plugin-content-docs-community/current.json file

      {
      "version.label": {
      "message": "Next",
      "description": "The label for version current"
      },
      "sidebar.community.category.How to Contribute": {
      "message": "Contribution Guidelines",
      "description": "The label for category How to Contribute in sidebar community"
      },
      "sidebar.community.category.Release Process & Verification": {
      "message": "Version release and verification",
      "description": "The label for category Release Process & Verification in sidebar community"
      },
      "sidebar.community.category.Design Documents": {
      "message": "Design document",
      "description": "The label for category Design Documents in sidebar community"
      },
      "sidebar.community.category.Developer Guide": {
      "message": "Developer's Manual",
      "description": "The label for category Developer Guide in sidebar community"
      }
      }
  4. Pictures

    All images are in the static/images directory

How to write SQL manual​

SQL manual doc refers to the documentation under docs/sql-manual. These documents are used in two places:

  1. Official website document.
  2. The output of the HELP command.

In order to support HELP command output, these documents need to be written in strict accordance with the following format, otherwise they will fail the admission check.

An example of the SHOW ALTER command is as follows:

---
{
"title": "SHOW-ALTER",
"language": "en"
}
---

<!--
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.
-->

## SHOW-ALTER

### Name

SHOW ALTER

### Description

(Describe the syntax)

### Example

(Give some example)

### Keywords

SHOW, ALTER

### Best Practice

(Optional)

Note that, regardless of Chinese or English documents, the above headings are in English, and pay attention to the level of the headings.

Multiple Versions​

Website documentation supports version tagging via html tags. You can use the <version> tag to mark which version a section of content in the document started from, or which version it was removed from.

Parameters introduction​

parameterdescriptionvalue
sincesupported from this versionversion number
deprecatedremoved from this versionversion number
commentComment
typeThere are default and inline stylesNo value is passed to indicate the default style, and inline is passed to indicate the inline style

Note: There must be blank lines before and after the <version> tag to avoid abnormal style rendering.

Single Tag​


<version since="1.1">

Apache Doris was first born as Palo project for Baidu's ad reporting business,
officially open-sourced in 2017, donated by Baidu to the Apache Foundation
for incubation in July 2018, and then incubated and operated by members of
the incubator project management committee under the guidance of
Apache mentors. Currently, the Apache Doris community has gathered
more than 300 contributors from nearly 100 companies in different
industries, and the number of active contributors is close to 100 per month.
Apache Doris has graduated from Apache incubator successfully and
become a Top-Level Project in June 2022.

</version>

Rendering style:

SinceVersion 1.1

Apache Doris was first born as Palo project for Baidu's ad reporting business, officially open-sourced in 2017, donated by Baidu to the Apache Foundation for incubation in July 2018, and then incubated and operated by members of the incubator project management committee under the guidance of Apache mentors. Currently, the Apache Doris community has gathered more than 300 contributors from nearly 100 companies in different industries, and the number of active contributors is close to 100 per month. Apache Doris has graduated from Apache incubator successfully and become a Top-Level Project in June 2022.

Multi Tag​


<version since="1.2" deprecated="1.5">

# Usage Scenarios

As shown in the figure below, after various data integration and processing, the data sources are usually stored in the real-time data warehouse Doris and the offline data lake or data warehouse (in Apache Hive, Apache Iceberg or Apache Hudi).
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sekvbs5ih5rb16wz6n9k.png)

Apache Doris is widely used in the following scenarios:

</version>

Rendering style:

SinceVersion 1.2DeprecatedVersion 1.5

Usage Scenarios

As shown in the figure below, after various data integration and processing, the data sources are usually stored in the real-time data warehouse Doris and the offline data lake or data warehouse (in Apache Hive, Apache Iceberg or Apache Hudi). Image description

Apache Doris is widely used in the following scenarios:

Comments​


<version since="1.3" comment="This is comment, Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity. ">

- Frontend(FEοΌ‰: It is mainly responsible for user request access, query parsing and planning, management of metadata, and node management-related work.
- Backend(BEοΌ‰: It is mainly responsible for data storage and query plan execution.

Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity. And these two types of processes guarantee high availability of services and high reliability of data through consistency protocols. This highly integrated architecture design greatly reduces the operation and maintenance cost of a distributed system.

</version>

Rendering style:

SinceVersion 1.3This is comment, Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity.
  • Frontend(FEοΌ‰: It is mainly responsible for user request access, query parsing and planning, management of metadata, and node management-related work.
  • Backend(BEοΌ‰: It is mainly responsible for data storage and query plan execution.

Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity. And these two types of processes guarantee high availability of services and high reliability of data through consistency protocols. This highly integrated architecture design greatly reduces the operation and maintenance cost of a distributed system.

Inline Tag​

In terms of the storage engine, Doris uses columnar storage to encode and compress and read data by column, <version since="1.0" type="inline" > enabling a very high compression ratio while reducing a large number of scans of non-relevant data,</version> thus making more efficient use of IO and CPU resources.

ζΈ²ζŸ“ζ ·εΌοΌš

In terms of the storage engine, Doris uses columnar storage to encode and compress and read data by column, SinceVersion 1.0 enabling a very high compression ratio while reducing a large number of scans of non-relevant data, thus making more efficient use of IO and CPU resources.