Skip to content

Commit 0039240

Browse files
committed
change name
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent f56c04d commit 0039240

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

core/src/main/java/org/opensearch/sql/utils/QueryStringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public class QueryStringUtils {
1414

1515
public static final String MASK_COLUMN = "identifier";
1616

17-
public static final String MASK_TIMESTAMP_COLUMN = "timestamp_identifier";
17+
public static final String MASK_TIMESTAMP_COLUMN = "time_identifier";
1818

19-
public static final String MASK_METADATA_COLUMN = "metadata_identifier";
19+
public static final String MASK_METADATA_COLUMN = "meta_identifier";
2020

2121
public static String maskField(String fieldName) {
2222
if (fieldName.equals(INTERNAL_TIMESTAMP)) {

ppl/src/test/java/org/opensearch/sql/ppl/utils/PPLQueryDataAnonymizerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void testReverseCommand() {
255255
@Test
256256
public void testTimechartCommand() {
257257
assertEquals(
258-
"source=table | timechart limit=*** useother=*** count() by span(timestamp_identifier, ***"
258+
"source=table | timechart limit=*** useother=*** count() by span(time_identifier, ***"
259259
+ " m) identifier",
260260
anonymize("source=t | timechart count() by host"));
261261
}
@@ -391,7 +391,7 @@ public void testAndExpression() {
391391
@Test
392392
public void testAndExpressionWithMetaData() {
393393
assertEquals(
394-
"source=table | where metadata_identifier = *** and identifier = ***",
394+
"source=table | where meta_identifier = *** and identifier = ***",
395395
anonymize("source=t | where _id=1 and b=2"));
396396
}
397397

@@ -886,7 +886,7 @@ private String anonymizeStatement(String query, boolean isExplain) {
886886
@Test
887887
public void testSearchWithAbsoluteTimeRange() {
888888
assertEquals(
889-
"source=table (timestamp_identifier >= ***) AND (timestamp_identifier <= ***)",
889+
"source=table (time_identifier >= ***) AND (time_identifier <= ***)",
890890
anonymize("search source=t earliest='2012-12-10 15:00:00' latest=now"));
891891
}
892892

@@ -913,7 +913,7 @@ public void testSearchWithGroup() {
913913
@Test
914914
public void testSearchWithOr() {
915915
assertEquals(
916-
"source=table (timestamp_identifier >= *** OR timestamp_identifier <= ***)",
916+
"source=table (time_identifier >= *** OR time_identifier <= ***)",
917917
anonymize("search source=t earliest='2012-12-10 15:00:00' or latest=now"));
918918
}
919919

0 commit comments

Comments
 (0)