Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#3409] improve(docs): Replace multi language tags with <Tabs groupId='language' queryString> (#3861)

Lance Linb58b8b72d297
diff --git a/docs/expression.md b/docs/expression.md
index 33ae51c723..957aadff7f 100644
--- a/docs/expression.md
+++ b/docs/expression.md
@@ -17,7 +17,7 @@ Gravitino expression system divides expressions into three basic parts: field re
Field reference is a reference to a field in a table.
The following is an example of creating a field reference expression, demonstrating how to create a reference for the `student` field.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -46,7 +46,7 @@ NamedReference field = NamedReference.field("student");
Literal is a constant value.
The following is an example of creating a literal expression, demonstrating how to create a `NULL` literal and three different data types of literal expressions for the value `1024`.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -95,7 +95,7 @@ Literal<?>[] literals =
Function expression represents a function call with/without arguments. The arguments can be field references, literals, or other function expressions.
The following is an example of creating a function expression, demonstrating how to create function expressions for `rand()` and `date_trunc('year', birthday)`.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -144,7 +144,7 @@ FunctionExpression[] functionExpressions =
Unparsed expression is a special type of expression, currently serves exclusively for presenting the default value of a column when it's unsolvable.
The following shows the data structure of an unparsed expression in JSON and Java, enabling easy retrieval of its value.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
diff --git a/docs/jdbc-doris-catalog.md b/docs/jdbc-doris-catalog.md
index f23e92704e..9708410d7d 100644
--- a/docs/jdbc-doris-catalog.md
+++ b/docs/jdbc-doris-catalog.md
@@ -121,7 +121,7 @@ Unsupported for now.
Please be aware that the index can only apply to a single column.
- <Tabs>
+ <Tabs groupId='language' queryString>
<TabItem value="json" label="Json">
```json
diff --git a/docs/jdbc-mysql-catalog.md b/docs/jdbc-mysql-catalog.md
index 88b131bc54..0d4b9423b0 100644
--- a/docs/jdbc-mysql-catalog.md
+++ b/docs/jdbc-mysql-catalog.md
@@ -119,7 +119,7 @@ Meanwhile, the data types other than listed above are mapped to Gravitino **[Ext
MySQL setting an auto-increment column requires simultaneously setting a unique index; otherwise, an error will occur.
:::
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="json" label="Json">
```json
@@ -186,7 +186,7 @@ The index name of the PRIMARY_KEY must be PRIMARY
[Create table index](https://dev.mysql.com/doc/refman/8.0/en/create-table.html)
:::
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="json" label="Json">
```json
diff --git a/docs/jdbc-postgresql-catalog.md b/docs/jdbc-postgresql-catalog.md
index 4b35d52019..46c83b083a 100644
--- a/docs/jdbc-postgresql-catalog.md
+++ b/docs/jdbc-postgresql-catalog.md
@@ -126,7 +126,7 @@ Meanwhile, the data types other than listed above are mapped to Gravitino **[Ext
- Supports PRIMARY_KEY and UNIQUE_KEY.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="json" label="Json">
```json
diff --git a/docs/lakehouse-iceberg-catalog.md b/docs/lakehouse-iceberg-catalog.md
index fa962565ce..6288627dd2 100644
--- a/docs/lakehouse-iceberg-catalog.md
+++ b/docs/lakehouse-iceberg-catalog.md
@@ -130,7 +130,7 @@ For `bucket` and `truncate`, the first argument must be integer literal, and the
- Gravitino used by default `NoneDistribution`.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="json" label="JSON">
```json
@@ -153,7 +153,7 @@ Distributions.NONE;
- Support `HashDistribution`, Hash distribute by partition key.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="json" label="JSON">
```json
@@ -175,7 +175,7 @@ Distributions.HASH;
- Support `RangeDistribution`, You can pass `range` as values through the API. Range distribute by partition key or sort key if table has an SortOrder.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="json" label="JSON">
```json
diff --git a/docs/manage-messaging-metadata-using-gravitino.md b/docs/manage-messaging-metadata-using-gravitino.md
index 4a4c39685c..7bc54e4468 100644
--- a/docs/manage-messaging-metadata-using-gravitino.md
+++ b/docs/manage-messaging-metadata-using-gravitino.md
@@ -29,7 +29,7 @@ For a messaging catalog, you must specify the `type` as `messaging` when creatin
You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`
endpoint or just use the Gravitino Java client. The following is an example of creating a messaging catalog:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -148,7 +148,7 @@ You can create a topic by sending a `POST` request to the `/api/metalakes/{metal
endpoint or just use the Gravitino Java client. The following is an example of creating a topic:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -197,7 +197,7 @@ You can modify a topic by sending a `PUT` request to the `/api/metalakes/{metala
endpoint or just use the Gravitino Java client. The following is an example of altering a topic:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -248,7 +248,7 @@ You can remove a topic by sending a `DELETE` request to the `/api/metalakes/{met
/catalogs/{catalog_name}/schemas/{schema_name}/topics/{topic_name}` endpoint or by using the
Gravitino Java client. The following is an example of dropping a topic:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -281,7 +281,7 @@ You can list all topics in a schema by sending a `GET` request to the `/api/meta
{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics` endpoint or by using the
Gravitino Java client. The following is an example of listing all the topics in a schema:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
diff --git a/docs/manage-relational-metadata-using-gravitino.md b/docs/manage-relational-metadata-using-gravitino.md
index 98b7ada4f5..e8ab4d782c 100644
--- a/docs/manage-relational-metadata-using-gravitino.md
+++ b/docs/manage-relational-metadata-using-gravitino.md
@@ -42,7 +42,7 @@ For relational catalog, you must specify the catalog `type` as `RELATIONAL` when
You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs` endpoint or just use the Gravitino Java client. The following is an example of creating a catalog:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -100,7 +100,7 @@ Currently, Gravitino supports the following catalog providers:
You can load a catalog by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a catalog:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -125,7 +125,7 @@ Catalog catalog = gravitinoClient.loadCatalog(NameIdentifier.of("metalake", "cat
You can modify a catalog by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or just use the Gravitino Java client. The following is an example of altering a catalog:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -512,7 +512,7 @@ Users should create a metalake, a catalog and a schema before creating a table.
You can create a table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables` endpoint or just use the Gravitino Java client. The following is an example of creating a table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -736,7 +736,7 @@ you can use the ExternalType to represent the type. Similarly, if the original t
represented by ExternalType.
The following shows the data structure of an external type in JSON and Java, enabling easy retrieval of its string value.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -764,7 +764,7 @@ deserialization between the server and client. For instance, if a new column typ
that the client does not recognize, it will be treated as an unparsed type on the client side.
The following shows the data structure of an unparsed type in JSON and Java, enabling easy retrieval of its value.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -843,7 +843,7 @@ The code above is an example of creating a Hive table. For other catalogs, the c
You can load a table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -877,7 +877,7 @@ tableCatalog.loadTable(NameIdentifier.of("metalake", "hive_catalog", "schema", "
You can modify a table by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or just use the Gravitino Java client. The following is an example of modifying a table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -935,7 +935,7 @@ Currently, Gravitino supports the following changes to a table:
You can remove a table by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or just use the Gravitino Java client. The following is an example of dropping a table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -978,7 +978,7 @@ Hive catalog and lakehouse-iceberg catalog supports `purgeTable` while jdbc-mysq
You can list all tables in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables` endpoint or just use the Gravitino Java client. The following is an example of list all tables in a schema:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
diff --git a/docs/manage-table-partition-using-gravitino.md b/docs/manage-table-partition-using-gravitino.md
index 2b44a1a1d2..3b29c35361 100644
--- a/docs/manage-table-partition-using-gravitino.md
+++ b/docs/manage-table-partition-using-gravitino.md
@@ -209,7 +209,7 @@ Each list in the lists must have the same length. The values in each list must c
You can add a partition to a partitioned table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.
The following is an example of adding a identity partition to a Hive partitioned table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -275,7 +275,7 @@ Partition addedPartition =
You can get a partition by its name via sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions/{partition_name}` endpoint or by using the Gravitino Java client.
The following is an example of getting a partition by its name:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -315,7 +315,7 @@ Partition Partition =
You can list all partition names under a partitioned table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.
The following is an example of listing all partition names under a partitioned table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -351,7 +351,7 @@ String[] partitionNames =
If you want to get more detailed information about the partitions under a partitioned table, you can list all partitions under a partitioned table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.
The following is an example of listing all partitions under a partitioned table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -382,7 +382,7 @@ Partition[] partitions =
You can drop a partition by its name via sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions/{partition_name}` endpoint or by using the Gravitino Java client.
The following is an example of dropping a partition by its name:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
diff --git a/docs/table-partitioning-bucketing-sort-order-indexes.md b/docs/table-partitioning-bucketing-sort-order-indexes.md
index bc88a59d8c..a103b0af6d 100644
--- a/docs/table-partitioning-bucketing-sort-order-indexes.md
+++ b/docs/table-partitioning-bucketing-sort-order-indexes.md
@@ -60,7 +60,7 @@ To create a bucketed table, you should use the following three components to con
- number. It defines how many buckets you use to bucket the table.
- funcArgs. It defines the arguments of the strategy, the argument must be an [expression](./expression.md).
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -109,7 +109,7 @@ Note: If the direction value is `ascending`, the default ordering value is `null
- sortTerm. It shows which field or function Gravitino uses to sort the table, must be an [expression](./expression.md).
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -140,7 +140,7 @@ SortOrders.of(NamedReference.field("score"), SortDirection.ASCENDING, NullOrderi
The following is an example of creating a partitioned, bucketed table, and sorted order table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell
@@ -251,7 +251,7 @@ To define an indexed table, you should utilize the following three components to
- FieldNames. It defines which table fields Gravitino uses to index the table.
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="Json" label="Json">
```json
@@ -274,7 +274,7 @@ Indexes.of(IndexType.PRIMARY_KEY, "PRIMARY", new String[][]{{"col_1"}, {"col_2"}
The following is an example of creating a index table:
-<Tabs>
+<Tabs groupId='language' queryString>
<TabItem value="shell" label="Shell">
```shell