Skip to content

Commit

Permalink
Fixing backfillRelationship for metadata_apsect (#486)
Browse files Browse the repository at this point in the history
* Updated

* Added paranthesis

* Small type

---------

Co-authored-by: Rakhi Agrawal <[email protected]>
  • Loading branch information
rakhiagr and Rakhi Agrawal authored Dec 10, 2024
1 parent 8e79e03 commit 9adcb21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,8 @@ private String batchGetSelect(@Nonnull String urn, @Nonnull String aspect, long
outputParams.add(aspect);
outputParams.add(version);

return String.format("SELECT t.urn, t.aspect, t.version, t.metadata, t.createdOn, t.createdBy, t.createdFor "
+ "FROM %s t WHERE urn = ? AND aspect = ? AND version = ?",
return String.format("(SELECT t.urn, t.aspect, t.version, t.metadata, t.createdOn, t.createdBy, t.createdFor "
+ "FROM %s t WHERE urn = ? AND aspect = ? AND version = ? ORDER BY t.createdOn DESC LIMIT 1)",
EbeanMetadataAspect.class.getAnnotation(Table.class).name());
}

Expand Down

0 comments on commit 9adcb21

Please sign in to comment.