-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2467] feat(kafka-catalog): Add schema operations support for Kafka …
…catalog (#2521) ### What changes were proposed in this pull request? This PR tracks the work of adding schema support for the Kafka catalog. Unlike the other catalog, the Kafka catalog manages schema in the Gravitino's store, and will automatically create a “default” schema to contain all topics in the cluster. ### Why are the changes needed? Fix: #2467 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? UTs added
- Loading branch information
Showing
5 changed files
with
382 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...log-messaging-kafka/src/main/java/com/datastrato/gravitino/catalog/kafka/KafkaSchema.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
package com.datastrato.gravitino.catalog.kafka; | ||
|
||
import com.datastrato.gravitino.catalog.rel.BaseSchema; | ||
|
||
public class KafkaSchema extends BaseSchema { | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
public static class Builder extends BaseSchemaBuilder<Builder, KafkaSchema> { | ||
|
||
@Override | ||
protected KafkaSchema internalBuild() { | ||
KafkaSchema schema = new KafkaSchema(); | ||
schema.name = name; | ||
schema.comment = comment; | ||
schema.properties = properties; | ||
schema.auditInfo = auditInfo; | ||
return schema; | ||
} | ||
} | ||
} |
Oops, something went wrong.