@514labs/moose-lib 0.6.251 → 0.6.252-ci-4-gb8a461bd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1309,6 +1309,18 @@ function convertIcebergS3EngineConfig(config) {
1309
1309
  compression: config.compression
1310
1310
  };
1311
1311
  }
1312
+ function convertKafkaEngineConfig(config) {
1313
+ if (!("engine" in config) || config.engine !== "Kafka" /* Kafka */) {
1314
+ return void 0;
1315
+ }
1316
+ return {
1317
+ engine: "Kafka",
1318
+ brokerList: config.brokerList,
1319
+ topicList: config.topicList,
1320
+ groupName: config.groupName,
1321
+ format: config.format
1322
+ };
1323
+ }
1312
1324
  function convertTableConfigToEngineConfig(config) {
1313
1325
  const engine = extractEngineValue(config);
1314
1326
  const basicConfig = convertBasicEngineConfig(engine, config);
@@ -1334,6 +1346,9 @@ function convertTableConfigToEngineConfig(config) {
1334
1346
  if (engine === "IcebergS3" /* IcebergS3 */) {
1335
1347
  return convertIcebergS3EngineConfig(config);
1336
1348
  }
1349
+ if (engine === "Kafka" /* Kafka */) {
1350
+ return convertKafkaEngineConfig(config);
1351
+ }
1337
1352
  return void 0;
1338
1353
  }
1339
1354
  var toInfraMap = (registry) => {