Skip to content

Commit f21ba4b

Browse files
committed
style: Apply scalafix and scalafmt changes
1 parent 1eaff10 commit f21ba4b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

flink/src/main/scala/ai/chronon/flink/deser/SchemaRegistrySerDe.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientExcept
99
import org.apache.avro.Schema
1010

1111
/** Schema Provider / SerDe implementation that uses the Confluent Schema Registry to fetch schemas for topics.
12-
* Can be configured as: topic = "kafka://topic-name/registry_host=host/[registry_port=port]/[registry_scheme=http]/[subject=subject]"
13-
* Port, scheme and subject are optional. If port is missing, we assume the host is pointing to a LB address / such that
14-
* forwards to the right host + port. Scheme defaults to http. Subject defaults to the topic name + "-value" (based on schema
15-
* registry conventions).
16-
*/
12+
* Can be configured as: topic = "kafka://topic-name/registry_host=host/[registry_port=port]/[registry_scheme=http]/[subject=subject]"
13+
* Port, scheme and subject are optional. If port is missing, we assume the host is pointing to a LB address / such that
14+
* forwards to the right host + port. Scheme defaults to http. Subject defaults to the topic name + "-value" (based on schema
15+
* registry conventions).
16+
*/
1717
class SchemaRegistrySerDe(topicInfo: TopicInfo) extends SerDe {
1818
import SchemaRegistrySerDe._
1919

@@ -63,7 +63,7 @@ class SchemaRegistrySerDe(topicInfo: TopicInfo) extends SerDe {
6363
throw new IllegalArgumentException("Error connecting to and requesting schema details from the registry", e)
6464
}
6565
require(parsedSchema.schemaType() == AvroSchema.TYPE,
66-
s"Unsupported schema type: ${parsedSchema.schemaType()}. Only Avro is supported.")
66+
s"Unsupported schema type: ${parsedSchema.schemaType()}. Only Avro is supported.")
6767
val avroSchema: Schema = parsedSchema.asInstanceOf[AvroSchema].rawSchema()
6868
val chrononSchema: StructType = AvroConversions.toChrononSchema(avroSchema).asInstanceOf[StructType]
6969
(avroSchema, chrononSchema)
@@ -94,4 +94,4 @@ object SchemaRegistrySerDe {
9494
val RegistrySchemeKey = "registry_scheme"
9595
val RegistrySubjectKey = "subject"
9696
val SchemaRegistryWireFormat = "schema_registry_wire_format"
97-
}
97+
}

0 commit comments

Comments
 (0)