Skip to content

Sync Java SDK models from atlanhq/models#2301

Merged
cmgrote merged 16 commits into
mainfrom
sync-models-20260310-130508
Mar 11, 2026
Merged

Sync Java SDK models from atlanhq/models#2301
cmgrote merged 16 commits into
mainfrom
sync-models-20260310-130508

Conversation

@atlan-ci

Copy link
Copy Markdown
Collaborator

Summary

This PR syncs the generated Java SDK models from the atlanhq/models repository.

Changes

Auto-generated Java model files from Pkl type definitions.

Test Plan

  • Verify generated models compile successfully
  • Run existing tests against updated models

🤖 This PR was automatically created by the sync-java-sdk workflow.

Source commit: c13b23ec95212d2d1ef8196de48283646e29acf6
Source ref: refs/heads/master

Co-Authored-By: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@atlan-ci
atlan-ci requested a review from cmgrote as a code owner March 10, 2026 13:12
@greptile-apps

greptile-apps Bot commented Mar 10, 2026

Copy link
Copy Markdown

Too many files changed for review. (1154 files found, 500 file limit)

cmgrote and others added 15 commits March 10, 2026 13:48
…hod fixes

- Fix @Singular can't singularize: icebergNamespaceHierarchy, assetGCPDataplexAspectList,
  assetGCPDataplexAspectFieldList, bprValue, sourceTagValue, responseValueArr* fields
- Fix duplicate removeDescription/removeOwners/etc. in Glossary/GlossaryCategory/GlossaryTerm
- Fix Connection.java: add findByName overloads and getAllQualifiedNames from overlay
- Fix missing imports injected from updated overlay files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Connection: add getEpochFromQualifiedName, findByName, getAllQualifiedNames
- LineageProcess: add generateQualifiedName, appendRelationships, appendRelationship
- SupersetDashboard: add generateQualifiedName
- GlossaryCategory: add ArrayList import for findByNameFast
- AtlanQuery: add Base64 and StandardCharsets imports
- DataProduct: add IndexSearchDSL, IndexSearchResponse, ArrayList imports

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ssing symbols

Key changes:
- Interface relationship getters are now `default` returning null (fixes
  DynamoDBAttribute, IcebergColumn, StarburstDatasetColumn, etc. implementing
  IColumn without Snowflake-specific relationship attributes)
- AtlanQuery convenience methods suppressed (4-param updater in overlay)
- Connection, LineageProcess, SupersetDashboard missing static methods added
- Import fixes: ArrayList (GlossaryCategory), Base64/StandardCharsets (AtlanQuery),
  IndexSearchDSL/IndexSearchResponse/ArrayList (DataProduct)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…sionalDataset overlays

- Glossary: ArrayList, LinkedHashMap, LinkedHashSet, Set, Collectors, SortOrder
- GlossaryTerm: ArrayList
- IMultiDimensionalDataset (interface): JsonIgnore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add missing imports to DataProduct overlay (DataProductAssetsDSL, IOException, LogicException)
- Add TreeSet import to Glossary overlay
- Add package-private setChildrenCategories setter to GlossaryCategory overlay
- Add sqlRelationshipGetters to DynamoDBAttribute, DynamoDBGlobalSecondaryIndex,
  DynamoDBLocalSecondaryIndex to resolve "unrelated defaults" Java compilation error
  (concrete classes now have fields so Lombok generates getters that override both
  IColumn/ISQL default methods)
- Fix ITableauProject.getMetrics() return type to SortedSet<IMetric> (universalRelationshipGetters
  now takes precedence over module-specific metrics attr to avoid Java type incompatibility)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix JavaTestRenderer.pkl: apply toEnumConstantName() to enum values in
  getCustomEnumValues() so test files use COMPLETENESS not completeness,
  ONE_TO_ONE not ONE-TO-ONE, etc.
- Fix JavaTestRenderer.pkl: map Asset/Referenceable -> IndistinctAsset in
  extractRelationshipClass() since Asset is abstract with no refByGuid()
- Fix Resource.pkl: change BadgeCondition.operator field type from String
  to BadgeComparisonOperator enum; add BadgeComparisonOperator to
  legacyEnumTypes so it can be referenced
- Add BadgeComparisonOperator/BadgeConditionColor to builtInEnums in
  JavaRenderer.pkl, JavaEnumRenderer.pkl to prevent regeneration of
  hand-written enum files
- Add DataDomain.findByName() overloads to _overlays/DataDomain.java
- Create _overlays/AtlanCollection.java with creator(client,name),
  generateQualifiedName(), save(), findByName() methods
- Add updateCertificate/removeCertificate/updateAnnouncement/removeAnnouncement
  to _overlays/AtlanQuery.java
- Create _overlays/structs/SourceTagAttachment.java with byName() and
  byQualifiedName() methods
- Create _overlays/structs/BadgeCondition.java with all of() overloads
  (suppressing auto-generated one)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Product imports

- GlossaryCategory: add @Setter(AccessLevel.PACKAGE) on childrenCategories field
  so Glossary.java's setChildrenCategories() call compiles
- DataProduct: add IOException and LogicException imports needed by getAssets()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ls, abstract type fixtures

- Fix mapAttrToJavaType: map<string,X> must not be wrapped in List<> even when multiValued=true
- Fix JavaEnumRenderer: add powerbi_endorsement → PowerBIEndorsementType to enumClassNameOverrides
  (removes stale PowerbiEndorsement.java, updates PowerBIEndorsementType.java)
- Fix JavaTestRenderer allEnumsMap: key by Java class names (via classRenames/snakeToPascalCase)
  so getCustomEnumValues() lookups find correct enum values (fixes VALUE0/VALUE1 placeholders)
- Fix JavaTestRenderer extractRelationshipClass: map interfaceOnlyTypes → IndistinctAsset
  (fixes Catalog/SQL/Spark/etc. refByGuid compilation errors in test fixtures)
- Fix renderConcreteClass/renderInterface: use getAllRelationshipAttrsFromModules (all modules)
  instead of getAllRelationshipAttrs (ancestor chain only) to pick up cross-module inherited rels
  (fixes DbtMeasure/DbtDimension missing semanticModel, SnowflakeSemantic types, etc.)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tract types

- Add getConcreteSuperTypeNames(): only follows concrete types (customAssetTypes/
  legacyAssetTypes), not abstract supertypeDefinitions (SQL, Catalog, Snowflake, etc.)
- Update getAllRelationshipAttrsFromModules() to use getConcreteSuperTypeNames()
  so DbtMeasure gets semanticModel (concrete SemanticMeasure endpoint) but
  SnowflakeSemanticDimension does NOT get spurious snowflakeSemanticLogicalTables
  (which would conflict with snowflakeSemanticLogicalTable @Singular)
- Revert renderInterface() to use getAllRelationshipAttrs() (ancestor chain only)
  to keep interface getters consistent with the reference SDK
- Add renamedName dedup to renderConcreteClass concreteRelAttrs fold to prevent
  Lombok @Builder/@Singular conflicts when typeSpecificRelationshipGetters and
  getAllRelationshipAttrsFromModules both provide attrs with the same renamedName

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… directory

These source files (assets, enums, package-info) were committed in error to
sdk/src/test/java/com/atlan/model/assets/ where only *Test.java files belong.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…AssetSidebarTab enums, remove StakeholderTitleTest

- Remove Metric from interfaceOnlyTypes so Metric.java is generated as a concrete class
- Add concreteTestFixtureMap (Catalog→Table, SQL→Table) in JavaTestRenderer for abstract interface fixture substitution
- Add AssetFilterGroup (TERMS/OWNERS) and AssetSidebarTab (OVERVIEW/COLUMNS) to builtInEnumValues
- Delete outdated StakeholderTitleTest.java (references removed field, type is passthrough)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… type filtering

- Remove stale DynamoDBSecondaryIndex.java (interface-only type, no concrete class)
- Fix ICatalog.java: remove DynamoDBSecondaryIndex from getLineageReference() switch
- Fix BigqueryTag: bigqueryTagHierarchy now List<Map<String,String>>
- Fix test fixtures: concrete substitutes for abstract types (Persona for IAccessControl etc.)
- All 326 test files regenerated with correct enum/relationship fixture values

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…con exclusion

Regenerated Java SDK with two test fixes:
- DbtMetric: @Singular("dbtMetricFilterEntry") prevents builder method name collision
  with String dbtMetricFilter field (was causing IllegalArgumentException in serde)
- CustomEntity test: removed assetIcon attribute, added iconUrl instead to match
  AssetSerializer/AssetDeserializer behavior (assetIcon is deserialized back as iconUrl
  for CustomEntity, causing JSON position asymmetry across serde roundtrip)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cmgrote
cmgrote merged commit cbb66f2 into main Mar 11, 2026
7 checks passed
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.

2 participants