@514labs/moose-lib 0.6.238-ci-4-ga2fdbac0 → 0.6.238-ci-1-gf6957fd8

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.
@@ -451,22 +451,6 @@ var handleDefault = (t, checker) => {
451
451
  }
452
452
  return defaultType.value;
453
453
  };
454
- var handleMaterialized = (t, checker) => {
455
- const materializedType = getTaggedType(
456
- t,
457
- checker,
458
- "_clickhouse_materialized"
459
- );
460
- if (materializedType === null) {
461
- return null;
462
- }
463
- if (!materializedType.isStringLiteral()) {
464
- throw new UnsupportedFeature(
465
- 'ClickHouseMaterialized must use a string literal, e.g. ClickHouseMaterialized<"toDate(timestamp)">'
466
- );
467
- }
468
- return materializedType.value;
469
- };
470
454
  var handleTtl = (t, checker) => {
471
455
  const ttlType = getTaggedType(t, checker, "_clickhouse_ttl");
472
456
  if (ttlType === null) {
@@ -957,21 +941,13 @@ var toColumns = (t, checker) => {
957
941
  isJwt,
958
942
  node?.type
959
943
  );
960
- const defaultValue = defaultExpression ?? handleDefault(type, checker);
961
- const materializedValue = handleMaterialized(type, checker);
962
- if (defaultValue && materializedValue) {
963
- throw new UnsupportedFeature(
964
- `Column '${prop.name}' cannot have both ClickHouseDefault and ClickHouseMaterialized. Use one or the other.`
965
- );
966
- }
967
944
  return {
968
945
  name: prop.name,
969
946
  data_type: dataType,
970
947
  primary_key: isKey,
971
948
  required: !nullable,
972
949
  unique: false,
973
- default: defaultValue,
974
- materialized: materializedValue,
950
+ default: defaultExpression ?? handleDefault(type, checker),
975
951
  ttl: handleTtl(type, checker),
976
952
  codec: handleCodec(type, checker),
977
953
  annotations