Skip to content

Commit 0492cdf

Browse files
committed
Merge branch 'main' into sort-expression-pushdown
2 parents d21ecef + 3d548b9 commit 0492cdf

File tree

120 files changed

+3696
-397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+3696
-397
lines changed

async-query/src/test/resources/flint-index-mappings/flint_mys3_default_http_logs_cv1_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"number_of_replicas": 0,
3131
"max_result_window": 100,
3232
"version": {
33-
"created": "6050399"
33+
"created": "137217827"
3434
}
3535
}
3636
},

async-query/src/test/resources/flint-index-mappings/flint_mys3_default_http_logs_skipping_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"number_of_replicas": 0,
4040
"max_result_window": 100,
4141
"version": {
42-
"created": "6050399"
42+
"created": "137217827"
4343
}
4444
}
4545
},

async-query/src/test/resources/flint-index-mappings/npe_mapping.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"number_of_replicas": 0,
2525
"max_result_window": 100,
2626
"version": {
27-
"created": "6050399"
27+
"created": "137217827"
2828
}
2929
}
3030
},

common/src/main/java/org/opensearch/sql/common/grok/GrokCompiler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ public Grok compile(final String pattern, ZoneId defaultTimeZone, boolean namedO
185185
(group.get("subname") != null ? group.get("subname") : group.get("name")));
186186
namedRegex =
187187
StringUtils.replace(namedRegex, "%{" + group.get("name") + "}", replacement, 1);
188-
// System.out.println(_expanded_pattern);
189188
index++;
190189
}
191190
}

common/src/test/java/org/opensearch/sql/common/grok/ApacheDataTypeTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public void test002_httpd_access_semi() throws GrokException {
4949
+ " HTTP/%{NUMBER:httpversion;float})?|%{DATA:rawrequest})\" %{NUMBER:response;int}"
5050
+ " (?:%{NUMBER:bytes;long}|-)");
5151

52-
System.out.println(line);
5352
Match gm = grok.match(line);
5453
Map<String, Object> map = gm.capture();
5554

common/src/test/java/org/opensearch/sql/common/grok/ApacheTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public void test001_httpd_access() throws GrokException, IOException {
3838

3939
BufferedReader br = new BufferedReader(new FileReader(LOG_FILE));
4040
String line;
41-
System.out.println("Starting test with httpd log");
4241
while ((line = br.readLine()) != null) {
4342
Match gm = grok.match(line);
4443
final Map<String, Object> capture = gm.capture();
@@ -50,7 +49,6 @@ public void test001_httpd_access() throws GrokException, IOException {
5049
@Test
5150
public void test002_nasa_httpd_access() throws GrokException, IOException {
5251
Grok grok = compiler.compile("%{COMMONAPACHELOG}");
53-
System.out.println("Starting test with nasa log -- may take a while");
5452
BufferedReader br;
5553
String line;
5654
File dir = new File(LOG_DIR_NASA);

common/src/test/java/org/opensearch/sql/common/grok/GrokTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ public void test013_IpSet() throws Throwable {
317317
try (FileReader fr = new FileReader(Resources.getResource(ResourceManager.IP).getFile());
318318
BufferedReader br = new BufferedReader(fr)) {
319319
String line;
320-
System.out.println("Starting test with ip");
321320
while ((line = br.readLine()) != null) {
322321
Match gm = grok.match(line);
323322
final Map<String, Object> map = gm.capture();

common/src/test/java/org/opensearch/sql/common/grok/MessagesTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public void test001_linux_messages() throws GrokException, IOException {
2929
new BufferedReader(
3030
new FileReader(Resources.getResource(ResourceManager.MESSAGES).getFile()));
3131
String line;
32-
System.out.println("Starting test with linux messages log -- may take a while");
3332
while ((line = br.readLine()) != null) {
3433
Match gm = grok.match(line);
3534
Map<String, Object> map = gm.capture();

core/src/main/java/org/opensearch/sql/analysis/Analyzer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import org.opensearch.sql.ast.tree.Append;
6262
import org.opensearch.sql.ast.tree.AppendCol;
6363
import org.opensearch.sql.ast.tree.Bin;
64+
import org.opensearch.sql.ast.tree.Chart;
6465
import org.opensearch.sql.ast.tree.CloseCursor;
6566
import org.opensearch.sql.ast.tree.Dedupe;
6667
import org.opensearch.sql.ast.tree.Eval;
@@ -769,6 +770,11 @@ public LogicalPlan visitSpath(SPath node, AnalysisContext context) {
769770
throw getOnlyForCalciteException("Spath");
770771
}
771772

773+
@Override
774+
public LogicalPlan visitChart(Chart node, AnalysisContext context) {
775+
throw getOnlyForCalciteException("Chart");
776+
}
777+
772778
@Override
773779
public LogicalPlan visitTimechart(Timechart node, AnalysisContext context) {
774780
throw getOnlyForCalciteException("Timechart");

core/src/main/java/org/opensearch/sql/ast/AbstractNodeVisitor.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import org.opensearch.sql.ast.tree.Append;
5050
import org.opensearch.sql.ast.tree.AppendCol;
5151
import org.opensearch.sql.ast.tree.Bin;
52+
import org.opensearch.sql.ast.tree.Chart;
5253
import org.opensearch.sql.ast.tree.CloseCursor;
5354
import org.opensearch.sql.ast.tree.Dedupe;
5455
import org.opensearch.sql.ast.tree.Eval;
@@ -275,6 +276,10 @@ public T visitReverse(Reverse node, C context) {
275276
return visitChildren(node, context);
276277
}
277278

279+
public T visitChart(Chart node, C context) {
280+
return visitChildren(node, context);
281+
}
282+
278283
public T visitTimechart(Timechart node, C context) {
279284
return visitChildren(node, context);
280285
}

0 commit comments

Comments
 (0)