Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Refactor #84

Merged
merged 2 commits into from
Dec 25, 2024
Merged

Major Refactor #84

merged 2 commits into from
Dec 25, 2024

Conversation

pflooky
Copy link

@pflooky pflooky commented Dec 25, 2024

Following major changes to API were made:

  • generator removed from field, count and countPerField, generator.options now moved to same level as name options
  • Foreign key definition change to source, generate and delete
    • Each part of foreign key contains dataSource, step and fields
  • Use field instead of column
    • Shortened version col is also changed to field
  • schema removed, fields moves down one level
  • Validation changes
    • Updates
      • ...Col -> ...Field (i.e. isEqualCol -> isEqualField)
      • isNot... -> is...(negate) (i.e. isNotNull -> isNull(true))
      • not... -> ...(negate) (i.e. notStartsWith("a") -> startsWith("a", true))
      • equalToOr... -> ...(strictly) (i.e. equalToOrLessThan(10) -> lessThan(10, false))
      • notIn("a", "b") -> in(List("a", "b"), true)
      • upstreamValidation...withValidation(...) -> upstreamValidation...validations(...)
    • New
      • matchesList(regexes, matchAll, negate)
      • hasTypes(types, negate)
      • distinctInSet(set, negate)
      • distinctContainsSet(set, negate)
      • distinctEqual(set, negate)
      • maxBetween(min, max, negate)
      • meanBetween(min, max, negate)
      • medianBetween(min, max, negate)
      • minBetween(min, max, negate)
      • stdDevBetween(min, max, negate)
      • sumBetween(min, max, negate)
      • lengthBetween(min, max, negate)
      • lengthEqual(value, negate)
      • isDecreasing(strictly)
      • isIncreasing(strictly)
      • isJsonParsable(negate)
      • matchJsonSchema(schema, negate)
      • matchDateTimeFormat(format, negate)
      • mostCommonValueInSet(values, negate)
      • uniqueValuesProportionBetween(min, max, negate)
      • quantileValuesBetween(quantileRanges, negate)
  • Get schema from Confluent Schema Registry added

@pflooky pflooky merged commit 0e642c2 into main Dec 25, 2024
1 check failed
@pflooky pflooky deleted the confluent-schema-registry branch December 25, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant