From 35146f32b122759e19d0083fcb0201638ba221fe Mon Sep 17 00:00:00 2001 From: Justin Donn Date: Mon, 25 Nov 2024 15:44:36 -0800 Subject: [PATCH] Fix small typos --- .../linkedin/metadata/dao/EbeanLocalRelationshipWriterDAO.java | 1 - .../localrelationship/EbeanLocalRelationshipWriterDAOTest.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/EbeanLocalRelationshipWriterDAO.java b/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/EbeanLocalRelationshipWriterDAO.java index a7bbe0585..a4a984c76 100644 --- a/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/EbeanLocalRelationshipWriterDAO.java +++ b/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/EbeanLocalRelationshipWriterDAO.java @@ -91,7 +91,6 @@ public void clearRelationshipsByEntity(@Nonnull RelationshipValidator.validateRelationshipSchema(relationshipClass, isRelationshipInV2(relationshipClass)); removeRelationshipsBySource(urn, aspectClass, isTestMode ? SQLSchemaUtils.getTestRelationshipTableName(relationshipClass) : SQLSchemaUtils.getRelationshipTableName(relationshipClass)); - } diff --git a/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/localrelationship/EbeanLocalRelationshipWriterDAOTest.java b/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/localrelationship/EbeanLocalRelationshipWriterDAOTest.java index 997a39a8e..4c3eacbcb 100644 --- a/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/localrelationship/EbeanLocalRelationshipWriterDAOTest.java +++ b/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/localrelationship/EbeanLocalRelationshipWriterDAOTest.java @@ -320,7 +320,7 @@ public void testRemoveRelationshipsDifferentAspect() throws URISyntaxException { private String insertRelationships(String table, String sourceUrn, String sourceType, String destinationUrn, String destinationType, String aspect) { String insertWithAspectTemplate = "INSERT INTO %s (metadata, source, source_type, destination, destination_type, lastmodifiedon, lastmodifiedby, aspect)" - + " VALUES ('{\"metadata\": true}', '%s', '%s', '%s', '%s', '1970-01-01 00:00:01', 'unknown', '%s')"; + + " VALUES ('{\"metadata\": true}', '%s', '%s', '%s', '%s', CURRENT_TIMESTAMP, 'unknown', '%s')"; String insertTemplate = "INSERT INTO %s (metadata, source, source_type, destination, destination_type, lastmodifiedon, lastmodifiedby)" + " VALUES ('{\"metadata\": true}', '%s', '%s', '%s', '%s', CURRENT_TIMESTAMP, 'unknown')"; if (_useAspectColumnForRelationshipRemoval) {