style: Apply spotless formatting to Kotlin files
Co-Authored-By: Ilja Herdt <ilja.herdt@airbyte.io>
This commit is contained in:
@@ -61,7 +61,11 @@ class DatabricksDestination : BaseConnector(), Destination {
|
||||
val connectorConfig = DatabricksConnectorConfig.deserialize(config)
|
||||
val datasource = DatabricksConnectorClientsFactory.createDataSource(connectorConfig)
|
||||
val sqlGenerator =
|
||||
DatabricksSqlGenerator(DatabricksNamingTransformer(), connectorConfig.database, connectorConfig.enableLiquidClustering)
|
||||
DatabricksSqlGenerator(
|
||||
DatabricksNamingTransformer(),
|
||||
connectorConfig.database,
|
||||
connectorConfig.enableLiquidClustering
|
||||
)
|
||||
val jdbcDatabase = DefaultJdbcDatabase(datasource)
|
||||
val destinationHandler =
|
||||
DatabricksDestinationHandler(sqlGenerator, connectorConfig.database, jdbcDatabase)
|
||||
@@ -212,7 +216,11 @@ class DatabricksDestination : BaseConnector(), Destination {
|
||||
val connectorConfig = DatabricksConnectorConfig.deserialize(config)
|
||||
|
||||
val sqlGenerator =
|
||||
DatabricksSqlGenerator(DatabricksNamingTransformer(), connectorConfig.database, connectorConfig.enableLiquidClustering)
|
||||
DatabricksSqlGenerator(
|
||||
DatabricksNamingTransformer(),
|
||||
connectorConfig.database,
|
||||
connectorConfig.enableLiquidClustering
|
||||
)
|
||||
val defaultNamespace = connectorConfig.schema
|
||||
val catalogParser =
|
||||
CatalogParser(sqlGenerator, defaultNamespace, connectorConfig.rawSchemaOverride)
|
||||
|
||||
@@ -22,7 +22,7 @@ data class DatabricksConnectorConfig(
|
||||
@JsonProperty("authentication") val authentication: Authentication,
|
||||
@JsonProperty("purge_staging_data") val purgeStagingData: Boolean = true,
|
||||
@JsonProperty("enable_liquid_clustering") val enableLiquidClustering: Boolean = false,
|
||||
){
|
||||
) {
|
||||
companion object {
|
||||
fun deserialize(jsonNode: JsonNode): DatabricksConnectorConfig {
|
||||
val objectMapper = MoreMappers.initMapper()
|
||||
|
||||
Reference in New Issue
Block a user