This is an automated email from the ASF dual-hosted git repository.
luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 9601567272 [doc](pred) Support xor function (#562)
9601567272 is described below
commit 960156727219bf487e4f80b3dae186f4547a5d9e
Author: Mryange <[email protected]>
AuthorDate: Wed Apr 17 11:56:45 2024 +0800
[doc](pred) Support xor function (#562)
---
.../sql-functions/numeric-functions/xor.md | 46 ++++++++++++++++++++++
.../sql-functions/numeric-functions/xor.md | 46 ++++++++++++++++++++++
.../sql-functions/numeric-functions/xor.md | 46 ++++++++++++++++++++++
sidebars.json | 1 +
.../sql-functions/numeric-functions/xor.md | 46 ++++++++++++++++++++++
versioned_sidebars/version-2.1-sidebars.json | 1 +
6 files changed, 186 insertions(+)
diff --git a/docs/sql-manual/sql-functions/numeric-functions/xor.md
b/docs/sql-manual/sql-functions/numeric-functions/xor.md
new file mode 100644
index 0000000000..b8abba2470
--- /dev/null
+++ b/docs/sql-manual/sql-functions/numeric-functions/xor.md
@@ -0,0 +1,46 @@
+---
+{
+ "title": "XOR",
+ "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.
+-->
+
+## xor
+
+### description
+#### Syntax
+
+`BOOLEAN xor BOOLEAN`
+Return the XOR value of two numbers.
+
+### example
+
+```
+mysql >select true xor false,true xor true;
++------------------+-----------------+
+| (TRUE XOR FALSE) | (TRUE XOR TRUE) |
++------------------+-----------------+
+| 1 | 0 |
++------------------+-----------------+
+
+```
+
+### keywords
+ XOR
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/xor.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/xor.md
new file mode 100644
index 0000000000..3e9f3c6698
--- /dev/null
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/xor.md
@@ -0,0 +1,46 @@
+---
+{
+ "title": "XOR",
+ "language": "zh-CN"
+}
+---
+
+<!--
+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.
+-->
+
+## xor
+
+### description
+#### Syntax
+
+`BOOLEAN xor BOOLEAN`
+返回两个数的异或值。
+
+### example
+
+```
+mysql >select true xor false,true xor true;
++------------------+-----------------+
+| (TRUE XOR FALSE) | (TRUE XOR TRUE) |
++------------------+-----------------+
+| 1 | 0 |
++------------------+-----------------+
+
+```
+
+### keywords
+ XOR
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/xor.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/xor.md
new file mode 100644
index 0000000000..3e9f3c6698
--- /dev/null
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/xor.md
@@ -0,0 +1,46 @@
+---
+{
+ "title": "XOR",
+ "language": "zh-CN"
+}
+---
+
+<!--
+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.
+-->
+
+## xor
+
+### description
+#### Syntax
+
+`BOOLEAN xor BOOLEAN`
+返回两个数的异或值。
+
+### example
+
+```
+mysql >select true xor false,true xor true;
++------------------+-----------------+
+| (TRUE XOR FALSE) | (TRUE XOR TRUE) |
++------------------+-----------------+
+| 1 | 0 |
++------------------+-----------------+
+
+```
+
+### keywords
+ XOR
diff --git a/sidebars.json b/sidebars.json
index 6282f3ec50..eaf64d5cb9 100644
--- a/sidebars.json
+++ b/sidebars.json
@@ -788,6 +788,7 @@
"sql-manual/sql-functions/numeric-functions/pmod",
"sql-manual/sql-functions/numeric-functions/round",
"sql-manual/sql-functions/numeric-functions/round-bankers",
+
"sql-manual/sql-functions/numeric-functions/xor",
"sql-manual/sql-functions/numeric-functions/truncate",
"sql-manual/sql-functions/numeric-functions/abs",
"sql-manual/sql-functions/numeric-functions/sqrt",
diff --git
a/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/xor.md
b/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/xor.md
new file mode 100644
index 0000000000..b8abba2470
--- /dev/null
+++
b/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/xor.md
@@ -0,0 +1,46 @@
+---
+{
+ "title": "XOR",
+ "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.
+-->
+
+## xor
+
+### description
+#### Syntax
+
+`BOOLEAN xor BOOLEAN`
+Return the XOR value of two numbers.
+
+### example
+
+```
+mysql >select true xor false,true xor true;
++------------------+-----------------+
+| (TRUE XOR FALSE) | (TRUE XOR TRUE) |
++------------------+-----------------+
+| 1 | 0 |
++------------------+-----------------+
+
+```
+
+### keywords
+ XOR
diff --git a/versioned_sidebars/version-2.1-sidebars.json
b/versioned_sidebars/version-2.1-sidebars.json
index 64d00cd3f2..e47a401c73 100644
--- a/versioned_sidebars/version-2.1-sidebars.json
+++ b/versioned_sidebars/version-2.1-sidebars.json
@@ -782,6 +782,7 @@
"sql-manual/sql-functions/numeric-functions/pmod",
"sql-manual/sql-functions/numeric-functions/round",
"sql-manual/sql-functions/numeric-functions/round-bankers",
+
"sql-manual/sql-functions/numeric-functions/xor",
"sql-manual/sql-functions/numeric-functions/truncate",
"sql-manual/sql-functions/numeric-functions/abs",
"sql-manual/sql-functions/numeric-functions/sqrt",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]