Skip to content

Commit

Permalink
Fixing qualified name tests with nested. Fixing type with NestedFunct…
Browse files Browse the repository at this point in the history
…ion.

Signed-off-by: forestmvey <forestv@bitquilltech.com>
  • Loading branch information
forestmvey committed Mar 22, 2023
1 parent 4e4f4a4 commit e5221ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public ExprValue valueOf(Environment<Expression, ExprValue> valueEnv) {

@Override
public ExprType type() {
return this.arguments.get(0).type();
return this.arguments.get(0).type();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,6 @@ public void project_nested_field_arg() {
function("nested", qualifiedName("message", "info")), null)
)
);

Map<String, ReferenceExpression> fieldPathMap = Map.of(
"field", new ReferenceExpression("message.info", STRING),
"path", new ReferenceExpression("message", STRING));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public void can_build_nested_select_field() {
relation("test"),
alias(
"message.info",
function("nested", qualifiedName("message.info")),
function("nested", qualifiedName("message", "info")),
null
)
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void canBuildGetFormatFunctionCall() {
public void canBuildNestedFunctionWithFieldParam() {
assertEquals(
new Alias("message.info",
function("nested", qualifiedName("message.info"))),
function("nested", qualifiedName("message","info"))),
buildExprAst("nested(message.info)")
);
}
Expand All @@ -226,7 +226,7 @@ public void canBuildNestedFunctionWithFieldAndPathParams() {
assertEquals(
new Alias("message.info",
function("nested",
qualifiedName("message.info"),
qualifiedName("message", "info"),
qualifiedName("message"))),
buildExprAst("nested(message.info, message)")
);
Expand Down

0 comments on commit e5221ba

Please sign in to comment.