dongkelun commented on issue #5693:
URL: https://github.com/apache/hudi/issues/5693#issuecomment-1297082549
@sunke38 @xushiyan When creating a table with spark sql, if hive is enabled,
a table will be created in the corresponding hive database. The default value
is default. You can use spark sql ("use databaseName") to change the current
database. If the table name has a database name, the database name in the table
name will prevail.
The database name configured through `hoodie.datasource.hive_sync.database`
will be synchronized to the corresponding database only when writing data.
However, your code does not write data, so it will not be synchronized.If it is
not configured, its default value is as follows:
```scala
hiveSyncConfig.setValue(HoodieSyncConfig.META_SYNC_DATABASE_NAME,
hoodieCatalogTable.table.identifier.database.getOrElse("default"))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]