Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
idegtiarenko committed Dec 17, 2024
1 parent dec7fb0 commit 1acc353
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ public LogicalPlan visitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx)

@Override
public PlanFactory visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) {
if (false == Build.current().isSnapshot()) {
throw new ParsingException(source(ctx), "LOOKUP__ is in preview and only available in SNAPSHOT build");
}
// if (false == Build.current().isSnapshot()) {
// throw new ParsingException(source(ctx), "LOOKUP__ is in preview and only available in SNAPSHOT build");
// }
var source = source(ctx);

@SuppressWarnings("unchecked")
Expand All @@ -530,9 +530,9 @@ public PlanFactory visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) {

public PlanFactory visitJoinCommand(EsqlBaseParser.JoinCommandContext ctx) {
var source = source(ctx);
if (false == Build.current().isSnapshot()) {
throw new ParsingException(source, "JOIN is in preview and only available in SNAPSHOT build");
}
// if (false == Build.current().isSnapshot()) {
// throw new ParsingException(source, "JOIN is in preview and only available in SNAPSHOT build");
// }

if (ctx.type != null && ctx.type.getType() != EsqlBaseParser.DEV_JOIN_LOOKUP) {
String joinType = ctx.type == null ? "(INNER)" : ctx.type.getText();
Expand Down

0 comments on commit 1acc353

Please sign in to comment.