Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
{
"title": "BIT_LENGTH",
"language": "en",
"description": "返回字符串或二进制值的位长度(实际长度就是字节数 8。)。"
"description": "Returns the bit length of a string or binary value (i.e., the byte length × 8)."
}
---

## 描述
## Description

返回字符串或二进制值的位长度(实际长度就是字节数 * 8。)。
Returns the bit length of a string or binary value (i.e., the byte length × 8).

## 语法
## Syntax
```sql
BIT_LENGTH(<str>)
```

## 参数
- `<str>` 要返回长度的字符串值。
## Parameters
- `<str>` The string value whose bit length is to be returned.

## 返回值
## Return Value

返回 `<str>` 在二进制表示中所占的位数,包括所有 0 和 1。
Returns the number of bits occupied by `<str>` in its binary representation, counting all `0` and `1` bits.

## 示例
## Examples
1. Example 1
```sql
select BIT_LENGTH("abc"), BIT_LENGTH("中国"), BIT_LENGTH(123);
Expand All @@ -45,4 +45,4 @@ BIT_LENGTH(<str>)
+------------------+
| NULL |
+------------------+
```
```
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---

Check notice on line 1 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

i18n-sync-locale-candidate

Japanese docs are report-only. Generate a candidate translation from the changed files and merge it only after human review. Owner%3A @zclllyybb

Check notice on line 1 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

i18n-sync-version-candidate

A 3.x counterpart exists. Confirm whether the change is supported in 3.x before leaving it unsynced. Owner%3A @zclllyybb

Check warning on line 1 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

i18n-sync-version-missing

English 4.x and current docs are strongly synchronized%2C but the current counterpart is missing. Add it or explain the version-specific exception in the PR description. Owner%3A @zclllyybb

Check warning on line 1 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

seo-title-duplicate

Rendered SEO title is duplicated across indexable pages%3A "BIT_LENGTH - Apache Doris". Add a version%2C locale%2C or page-specific qualifier. Owner%3A @zclllyybb

Check warning on line 1 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

seo-description-length

SEO description should be 80-160 characters; current length is 79. Owner%3A @zclllyybb
{
"title": "BIT_LENGTH",
"language": "en",
"description": "返回字符串或二进制值的位长度(实际长度就是字节数 8。)。"
"description": "Returns the bit length of a string or binary value (i.e., the byte length × 8)."
}
---

## 描述
## Description

返回字符串或二进制值的位长度(实际长度就是字节数 * 8。)。
Returns the bit length of a string or binary value (i.e., the byte length × 8).

Check warning on line 11 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

sql-function-parameters-table

Parameters section must be a Markdown table with Parameter and Description columns. Owner%3A @zclllyybb

## 语法
## Syntax
```sql

Check warning on line 14 in versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md

View workflow job for this annotation

GitHub Actions / Build Check

sql-function-return-null

Return Value section must document NULL return conditions%2C including when the function never returns NULL. Owner%3A @zclllyybb
BIT_LENGTH(<str>)
```

## 参数
- `<str>` 要返回长度的字符串值。
## Parameters
- `<str>` The string value whose bit length is to be returned.

## 返回值
## Return Value

返回 `<str>` 在二进制表示中所占的位数,包括所有 0 和 1。
Returns the number of bits occupied by `<str>` in its binary representation, counting all `0` and `1` bits.

## 示例
## Examples
1. Example 1
```sql
select BIT_LENGTH("abc"), BIT_LENGTH("中国"), BIT_LENGTH(123);
Expand All @@ -45,4 +45,4 @@
+------------------+
| NULL |
+------------------+
```
```
Loading