Skip to content

Commit

Permalink
🐛 Fix missing JDBC properties in catalog creation payload for Apache …
Browse files Browse the repository at this point in the history
…Iceberg
  • Loading branch information
niyushabaghayi committed Nov 4, 2024
1 parent 452d97e commit 114529d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ const CreateCatalogDialog = props => {
let nextProps = propItems

if (
propItems[0]?.key === 'catalog-backend' &&
propItems[0]?.value === 'hive' &&
propItems.some(item => item.key === 'catalog-backend' && ['hive', 'iceberg'].includes(item.value)) &&
['lakehouse-iceberg', 'lakehouse-paimon'].includes(providerSelect)
) {
nextProps = propItems.filter(item => !['jdbc-driver', 'jdbc-user', 'jdbc-password'].includes(item.key))
Expand Down Expand Up @@ -280,7 +279,7 @@ const CreateCatalogDialog = props => {

if (
catalogBackend &&
catalogBackend === 'hive' &&
['hive', 'iceberg'].includes(catalogBackend) &&
['lakehouse-iceberg', 'lakehouse-paimon'].includes(providerSelect)
) {
properties = {
Expand Down

0 comments on commit 114529d

Please sign in to comment.