Skip to content

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

[#10075] feat(web): Add frontend support for Hologres JDBC catalog (#10070)

Ye Ding6647775c4317
diff --git a/docs/manage-relational-metadata-using-gravitino.md b/docs/manage-relational-metadata-using-gravitino.md
index bc68a4db57..e62d914dac 100644
--- a/docs/manage-relational-metadata-using-gravitino.md
+++ b/docs/manage-relational-metadata-using-gravitino.md
@@ -24,6 +24,7 @@ For more details, please refer to the related doc.
- [**Apache Doris**](./jdbc-doris-catalog.md)
- [**StarRocks**](./jdbc-starrocks-catalog.md)
- [**OceanBase**](./jdbc-oceanbase-catalog.md)
+- [**Hologres**](./jdbc-hologres-catalog.md)
- [**ClickHouse**](./jdbc-clickhouse-catalog.md)
- [**Hologres**](./jdbc-hologres-catalog.md)
- [**Apache Iceberg**](./lakehouse-iceberg-catalog.md)
@@ -129,6 +130,7 @@ Currently, Gravitino supports the following catalog providers:
| `jdbc-postgresql` | [PostgreSQL catalog property](./jdbc-postgresql-catalog.md#catalog-properties) |
| `jdbc-doris` | [Doris catalog property](./jdbc-doris-catalog.md#catalog-properties) |
| `jdbc-oceanbase` | [OceanBase catalog property](./jdbc-oceanbase-catalog.md#catalog-properties) |
+| `jdbc-hologres` | [Hologres catalog property](./jdbc-hologres-catalog.md#catalog-properties) |
| `jdbc-starrocks` | [StarRocks catalog property](./jdbc-starrocks-catalog.md#catalog-properties) |
| `jdbc-clickhouse` | [ClickHouse catalog property](./jdbc-clickhouse-catalog.md#catalog-properties) |
| `jdbc-hologres` | [Hologres catalog property](./jdbc-hologres-catalog.md#catalog-properties) |
@@ -516,6 +518,7 @@ Currently, Gravitino supports the following schema property:
| `jdbc-postgresql` | [PostgreSQL schema property](./jdbc-postgresql-catalog.md#schema-properties) |
| `jdbc-doris` | [Doris schema property](./jdbc-doris-catalog.md#schema-properties) |
| `jdbc-oceanbase` | [OceanBase schema property](./jdbc-oceanbase-catalog.md#schema-properties) |
+| `jdbc-hologres` | [Hologres schema property](./jdbc-hologres-catalog.md#schema-properties) |
| `jdbc-starrocks` | [StarRocks schema property](./jdbc-starrocks-catalog.md#schema-properties) |
| `jdbc-clickhouse` | [ClickHouse schema property](./jdbc-clickhouse-catalog.md#schema-properties) |
| `jdbc-hologres` | [Hologres schema property](./jdbc-hologres-catalog.md#schema-properties) |
@@ -998,6 +1001,7 @@ The following is a table of the column default value that Gravitino supports for
| `jdbc-postgresql` | ✔ |
| `jdbc-doris` | ✔ |
| `jdbc-oceanbase` | ✔ |
+| `jdbc-hologres` | ✔ |
| `jdbc-starrocks` | ✔ |
| `jdbc-clickhouse` | ✔ |
| `jdbc-hologres` | ✔ |
@@ -1018,6 +1022,7 @@ The following table shows the column auto-increment that Gravitino supports for
| `jdbc-postgresql` | ✔ |
| `jdbc-doris` | ✘ |
| `jdbc-oceanbase` | ✔([limitations](./jdbc-oceanbase-catalog.md#table-column-auto-increment)) |
+| `jdbc-hologres` | ✘ |
| `jdbc-starrocks` | ✔ |
| `jdbc-clickhouse` | ✘ |
| `jdbc-hologres` | ✘ |
@@ -1037,6 +1042,7 @@ The following is the table property that Gravitino supports:
| `jdbc-postgresql` | [PostgreSQL table property](./jdbc-postgresql-catalog.md#table-properties) | [PostgreSQL type mapping](./jdbc-postgresql-catalog.md#table-column-types) |
| `jdbc-doris` | [Doris table property](./jdbc-doris-catalog.md#table-properties) | [Doris type mapping](./jdbc-doris-catalog.md#table-column-types) |
| `jdbc-oceanbase` | [OceanBase table property](./jdbc-oceanbase-catalog.md#table-properties) | [OceanBase type mapping](./jdbc-oceanbase-catalog.md#table-column-types) |
+| `jdbc-hologres` | [Hologres table property](./jdbc-hologres-catalog.md#table-properties) | [Hologres type mapping](./jdbc-hologres-catalog.md#table-column-types) |
| `jdbc-starrocks` | [StarRocks table property](./jdbc-starrocks-catalog.md#table-properties) | [StarRocks type mapping](./jdbc-starrocks-catalog.md#table-column-types) |
| `jdbc-clickhouse` | [ClickHouse table property](./jdbc-clickhouse-catalog.md#table-properties) | [ClickHouse type mapping](./jdbc-clickhouse-catalog.md#table-column-types) |
| `jdbc-hologres` | [Hologres table property](./jdbc-hologres-catalog.md#table-properties) | [Hologres type mapping](./jdbc-hologres-catalog.md#table-column-types) |
diff --git a/web-v2/web/src/app/catalogs/TreeComponent.js b/web-v2/web/src/app/catalogs/TreeComponent.js
index c023f5d3ef..ab7ed1e12b 100644
--- a/web-v2/web/src/app/catalogs/TreeComponent.js
+++ b/web-v2/web/src/app/catalogs/TreeComponent.js
@@ -151,6 +151,22 @@ export const TreeComponent = forwardRef(function TreeComponent(props, ref) {
)}
</span>
)
+ case 'custom-icons-hologres':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.hologres className='size-4'></Icons.hologres>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
case 'custom-icons-oceanbase':
return (
<span
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
index b1dab97d56..b76b936024 100644
--- a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
@@ -343,6 +343,8 @@ export default function CreateCatalogDialog({ ...props }) {
return <Icons.paimon className={small ? 'size-6' : 'size-12'}></Icons.paimon>
case 'custom-icons-hudi':
return <Icons.hudi className={small ? 'size-6' : 'size-12'}></Icons.hudi>
+ case 'custom-icons-hologres':
+ return <Icons.hologres className={small ? 'size-6' : 'size-12'}></Icons.hologres>
case 'custom-icons-oceanbase':
return <Icons.oceanbase className={small ? 'size-6' : 'size-12'}></Icons.oceanbase>
case 'custom-icons-starrocks':
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js
index ca1dd8d71b..4314c6e73b 100644
--- a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js
@@ -81,6 +81,8 @@ const renderIcon = catalog => {
return <Icons.paimon className='size-8'></Icons.paimon>
case 'custom-icons-hudi':
return <Icons.hudi className='size-8'></Icons.hudi>
+ case 'custom-icons-hologres':
+ return <Icons.hologres className='size-8'></Icons.hologres>
case 'custom-icons-oceanbase':
return <Icons.oceanbase className='size-8'></Icons.oceanbase>
case 'custom-icons-starrocks':
diff --git a/web-v2/web/src/components/Icons.js b/web-v2/web/src/components/Icons.js
index e4c2c423a8..0995f2e1b0 100644
--- a/web-v2/web/src/components/Icons.js
+++ b/web-v2/web/src/components/Icons.js
@@ -369,6 +369,26 @@ const Icons = {
</g>
</svg>
),
+ hologres: props => (
+ <svg
+ t='1770608544870'
+ className='icon'
+ viewBox='0 0 1024 1024'
+ version='1.1'
+ xmlns='http://www.w3.org/2000/svg'
+ p-id='1571'
+ xmlnsXlink='http://www.w3.org/1999/xlink'
+ width='200'
+ height='200'
+ {...props}
+ >
+ <path
+ d='M768.384 742.5536l10.9056 1.8176c81.8176 10.9056 112.7168 29.0816 125.44 41.8048 7.2704 7.296 7.2704 12.7488 7.2704 16.384 0 23.6288-32.7168 41.8048-94.5408 54.528h-9.088c-61.824 10.9312-152.7296 16.384-285.44 18.176v-143.616h19.968c94.5664 0 167.296 3.6352 225.4848 10.9056z m-505.472 0v125.44h-3.6352c-50.8928-9.088-116.352-25.4464-140.0064-50.8928-5.4528-5.4528-7.2704-10.9056-7.2704-14.5408 0-3.6352 1.8176-7.2704 7.2704-12.7488l1.8176-1.792c10.9312-9.1136 27.2896-16.384 40.0128-20.0192 23.6288-10.9056 58.1888-18.176 101.8112-25.4464z m-150.912-409.088c3.6352 1.792 5.4528 3.6352 9.088 3.6352l5.4784 1.792 16.3584 5.4784c32.7168 10.9056 67.2768 19.9936 119.9872 27.264v278.1952c-52.736 5.4528-87.2704 14.5408-118.1696 25.4464-3.6352 1.8176-5.4528 1.8176-9.088 3.6352-1.8176 1.8176-5.4528 1.8176-7.2704 3.6352l-5.4528 1.8176-3.6608 1.8176-3.6352 1.8176-3.6352 1.8176v-356.352z m800 0v354.56l-3.6352-1.8432-3.6352-1.792c-1.792-1.8432-3.6352-1.8432-5.4528-1.8432h-1.792l-7.296-3.6352-3.6352-1.792-5.4528-1.8432-5.4528-1.792-3.6352-1.8432-5.4528-1.8176c-1.8176 0-5.4528-1.8176-7.2704-1.8176h-1.8176c-3.6352 0-5.4528-1.8176-9.088-1.8176l-3.6352-1.8176-5.4528-1.8176-7.296-1.8176-9.088-1.8176h-3.6352l-5.4528-1.8176h-10.9056l-9.088-1.8176c-3.6352 0-5.4528 0-9.088-1.8176h-3.6352l-10.9056-1.8176h-9.088l-7.296-1.8176h-7.2704a2473.3696 2473.3696 0 0 0-139.9808-9.088h-81.8176V384.3584h19.968c114.56-1.792 201.8304-7.2704 267.2896-18.176l14.5408-1.792h3.6352l7.296-1.8432 9.088-1.792 5.4528-1.8432 7.2704-1.792 7.2704-1.8432 7.2704-1.792c3.6352-1.8432 9.088-3.6608 12.7232-3.6608 1.8176 0 3.6352-1.8176 7.2704-1.8176l3.6352-1.8176 3.6352-1.8176 3.6352-1.8176 3.6352-1.8176 3.6352-1.8176v-5.4528zM350.208 644.352V378.88c18.176 1.8176 47.2832 1.8176 87.296 3.6352V640.768c-32.7424 0-60.0064 1.792-87.296 3.6352zM817.4592 168.0128l9.088 1.792c40.0128 9.1136 85.4528 23.6544 85.4528 50.944 0 19.968-36.352 38.144-98.176 50.8928l-5.4528 1.8176c-65.4592 12.7232-158.1824 18.176-281.8048 18.176v-143.616h27.264c119.9872 1.792 205.4656 9.088 263.6288 19.968zM262.912 155.2896v125.44c-45.44-5.4528-72.704-12.7232-98.176-21.8112l-3.6352-1.8176-7.2704-1.8176c-12.7232-5.4528-30.8992-14.5408-38.1952-25.4464-1.792-1.8432-3.6352-3.6608-3.6352-5.4784v-3.6352c0-7.2704 9.088-16.3584 23.6544-25.4464 18.176-10.9056 41.8048-19.9936 74.5472-27.264 18.176-5.4528 32.7168-9.088 52.736-12.7232z'
+ fill='#FF6A00'
+ p-id='1572'
+ ></path>
+ </svg>
+ ),
starrocks: props => (
<svg version='1.1' width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' {...props}>
<g id='starrocks'>
diff --git a/web-v2/web/src/config/catalog.js b/web-v2/web/src/config/catalog.js
index e70a9a8e35..14baaf8976 100644
--- a/web-v2/web/src/config/catalog.js
+++ b/web-v2/web/src/config/catalog.js
@@ -35,6 +35,8 @@ export const checkCatalogIcon = ({ type, provider }) => {
return 'custom-icons-paimon'
case 'lakehouse-hudi':
return 'custom-icons-hudi'
+ case 'jdbc-hologres':
+ return 'custom-icons-hologres'
case 'jdbc-oceanbase':
return 'custom-icons-oceanbase'
case 'jdbc-starrocks':
@@ -640,6 +642,45 @@ export const providerBase = {
}
]
},
+ 'jdbc-hologres': {
+ label: 'Hologres',
+ defaultProps: [
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: 'org.postgresql.Driver',
+ required: true,
+ description: 'e.g. org.postgresql.Driver'
+ },
+ {
+ label: 'JDBC URL',
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:postgresql://{ENDPOINT}:{PORT}/{DATABASE}'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true,
+ description: 'Alibaba Cloud AccessKey ID'
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true,
+ description: 'Alibaba Cloud AccessKey Secret'
+ },
+ {
+ label: 'JDBC Database',
+ key: 'jdbc-database',
+ value: '',
+ required: true
+ }
+ ]
+ },
'jdbc-oceanbase': {
label: 'OceanBase',
defaultProps: [
@@ -750,6 +791,11 @@ export const relationalProviders = [
value: 'jdbc-mysql',
description: 'A fully managed database service'
},
+ {
+ label: 'Hologres',
+ value: 'jdbc-hologres',
+ description: 'Real-time Data Warehouse'
+ },
{
label: 'OceanBase',
value: 'jdbc-oceanbase',
diff --git a/web-v2/web/src/lib/icons/svg/hologres.svg b/web-v2/web/src/lib/icons/svg/hologres.svg
new file mode 100644
index 0000000000..8fdce95305
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/hologres.svg
@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1770608544870" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1571" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768.384 742.5536l10.9056 1.8176c81.8176 10.9056 112.7168 29.0816 125.44 41.8048 7.2704 7.296 7.2704 12.7488 7.2704 16.384 0 23.6288-32.7168 41.8048-94.5408 54.528h-9.088c-61.824 10.9312-152.7296 16.384-285.44 18.176v-143.616h19.968c94.5664 0 167.296 3.6352 225.4848 10.9056z m-505.472 0v125.44h-3.6352c-50.8928-9.088-116.352-25.4464-140.0064-50.8928-5.4528-5.4528-7.2704-10.9056-7.2704-14.5408 0-3.6352 1.8176-7.2704 7.2704-12.7488l1.8176-1.792c10.9312-9.1136 27.2896-16.384 40.0128-20.0192 23.6288-10.9056 58.1888-18.176 101.8112-25.4464z m-150.912-409.088c3.6352 1.792 5.4528 3.6352 9.088 3.6352l5.4784 1.792 16.3584 5.4784c32.7168 10.9056 67.2768 19.9936 119.9872 27.264v278.1952c-52.736 5.4528-87.2704 14.5408-118.1696 25.4464-3.6352 1.8176-5.4528 1.8176-9.088 3.6352-1.8176 1.8176-5.4528 1.8176-7.2704 3.6352l-5.4528 1.8176-3.6608 1.8176-3.6352 1.8176-3.6352 1.8176v-356.352z m800 0v354.56l-3.6352-1.8432-3.6352-1.792c-1.792-1.8432-3.6352-1.8432-5.4528-1.8432h-1.792l-7.296-3.6352-3.6352-1.792-5.4528-1.8432-5.4528-1.792-3.6352-1.8432-5.4528-1.8176c-1.8176 0-5.4528-1.8176-7.2704-1.8176h-1.8176c-3.6352 0-5.4528-1.8176-9.088-1.8176l-3.6352-1.8176-5.4528-1.8176-7.296-1.8176-9.088-1.8176h-3.6352l-5.4528-1.8176h-10.9056l-9.088-1.8176c-3.6352 0-5.4528 0-9.088-1.8176h-3.6352l-10.9056-1.8176h-9.088l-7.296-1.8176h-7.2704a2473.3696 2473.3696 0 0 0-139.9808-9.088h-81.8176V384.3584h19.968c114.56-1.792 201.8304-7.2704 267.2896-18.176l14.5408-1.792h3.6352l7.296-1.8432 9.088-1.792 5.4528-1.8432 7.2704-1.792 7.2704-1.8432 7.2704-1.792c3.6352-1.8432 9.088-3.6608 12.7232-3.6608 1.8176 0 3.6352-1.8176 7.2704-1.8176l3.6352-1.8176 3.6352-1.8176 3.6352-1.8176 3.6352-1.8176 3.6352-1.8176v-5.4528zM350.208 644.352V378.88c18.176 1.8176 47.2832 1.8176 87.296 3.6352V640.768c-32.7424 0-60.0064 1.792-87.296 3.6352zM817.4592 168.0128l9.088 1.792c40.0128 9.1136 85.4528 23.6544 85.4528 50.944 0 19.968-36.352 38.144-98.176 50.8928l-5.4528 1.8176c-65.4592 12.7232-158.1824 18.176-281.8048 18.176v-143.616h27.264c119.9872 1.792 205.4656 9.088 263.6288 19.968zM262.912 155.2896v125.44c-45.44-5.4528-72.704-12.7232-98.176-21.8112l-3.6352-1.8176-7.2704-1.8176c-12.7232-5.4528-30.8992-14.5408-38.1952-25.4464-1.792-1.8432-3.6352-3.6608-3.6352-5.4784v-3.6352c0-7.2704 9.088-16.3584 23.6544-25.4464 18.176-10.9056 41.8048-19.9936 74.5472-27.264 18.176-5.4528 32.7168-9.088 52.736-12.7232z" fill="#FF6A00" p-id="1572"></path></svg>
\ No newline at end of file