From fe672f34de1b2adc84f5e010e3564c8bb422975c Mon Sep 17 00:00:00 2001 From: Rafael Bey <24432403+rafaelbey@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:41:27 -0500 Subject: [PATCH] Fix typo on property DatabasePattern.escapeTablePattern (#2507) --- .../connection/api/schema/model/DatabasePattern.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan-connection-api/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/connection/api/schema/model/DatabasePattern.java b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan-connection-api/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/connection/api/schema/model/DatabasePattern.java index 4afacd3ec4a..028d8f35b65 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan-connection-api/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/connection/api/schema/model/DatabasePattern.java +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-execution/legend-engine-xt-relationalStore-executionPlan-connection-api/src/main/java/org/finos/legend/engine/plan/execution/stores/relational/connection/api/schema/model/DatabasePattern.java @@ -14,6 +14,7 @@ package org.finos.legend.engine.plan.execution.stores.relational.connection.api.schema.model; +import com.fasterxml.jackson.annotation.JsonAlias; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -28,8 +29,7 @@ public class DatabasePattern private final boolean escapeSchemaPattern; - private final boolean escapteTablePattern; - + private final boolean escapeTablePattern; @JsonCreator public DatabasePattern( @@ -37,14 +37,14 @@ public DatabasePattern( @JsonProperty("schemaPattern") String schemaPattern, @JsonProperty("tablePattern") String tablePattern, @JsonProperty("escapeSchemaPattern") boolean escapeSchemaPattern, - @JsonProperty("escapteTablePattern") boolean escapeTablePattern + @JsonProperty("escapeTablePattern") @JsonAlias("escapteTablePattern") boolean escapeTablePattern ) { this.catalog = catalog; this.schemaPattern = schemaPattern; this.tablePattern = tablePattern; this.escapeSchemaPattern = escapeSchemaPattern; - this.escapteTablePattern = escapeTablePattern; + this.escapeTablePattern = escapeTablePattern; } public DatabasePattern(String schemaPattern, String tablePattern, boolean escapeSchemaPattern, boolean escapeTablePattern) @@ -85,12 +85,12 @@ public boolean isEscapeSchemaPattern() public boolean isEscapeTablePattern() { - return escapteTablePattern; + return escapeTablePattern; } public DatabasePattern withNewCatalog(String catalog) { - return new DatabasePattern(catalog, this.schemaPattern, this.tablePattern, this.escapeSchemaPattern, this.escapteTablePattern); + return new DatabasePattern(catalog, this.schemaPattern, this.tablePattern, this.escapeSchemaPattern, this.escapeTablePattern); } }