Skip to content

Commit

Permalink
[#5270] UI(oceanbase-catalog): Support OceanBase-CE JDBC catalog on t…
Browse files Browse the repository at this point in the history
…he Web UI (#5272)

### What changes were proposed in this pull request?
Support OceanBase-CE JDBC catalog on the Web UI
<img width="636" alt="image"
src="https://github.com/user-attachments/assets/330ab1a1-1614-4b90-b6c3-d29f86d4fd45">


### Why are the changes needed?
N/A

Fix: #5270

### Does this PR introduce _any_ user-facing change?
N/A

### How was this patch tested?
N/A

---------

Co-authored-by: yuanoOo <[email protected]>
  • Loading branch information
2 people authored and web-flow committed Oct 29, 2024
1 parent 6f0bd57 commit 2780d2a
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/web/src/app/metalakes/metalake/MetalakeTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ const MetalakeTree = props => {
return 'custom-icons-paimon'
case 'lakehouse-hudi':
return 'custom-icons-hudi'
case 'jdbc-oceanbase':
return 'custom-icons-oceanbase'
default:
return 'bx:book'
}
Expand Down
5 changes: 5 additions & 0 deletions web/web/src/lib/icons/iconify-icons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions web/web/src/lib/icons/svg/oceanbase.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions web/web/src/lib/utils/initial.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,33 @@ export const providers = [
description: 'Apache Hudi catalog uri config'
}
]
},
{
label: 'OceanBase',
value: 'jdbc-oceanbase',
defaultProps: [
{
key: 'jdbc-driver',
value: '',
required: true,
description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver or com.oceanbase.jdbc.Driver'
},
{
key: 'jdbc-url',
value: '',
required: true,
description: 'e.g. jdbc:mysql://localhost:2881 or jdbc:oceanbase://localhost:2881'
},
{
key: 'jdbc-user',
value: '',
required: true
},
{
key: 'jdbc-password',
value: '',
required: true
}
]
}
]

0 comments on commit 2780d2a

Please sign in to comment.