Skip to content

Commit

Permalink
feat: functions
Browse files Browse the repository at this point in the history
- BigQuery `DATE()`
- `NVL()`

Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
  • Loading branch information
manticore-projects committed Mar 15, 2024
1 parent 44cf635 commit 6f6b127
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

public class ExpressionTranspiler extends ExpressionDeParser {
public void visit(Function function) {
// @todo: figure out a better rewrite mechanism
if (function.getName().equalsIgnoreCase("nvl")) {
function.setName("Coalesce");
}

if (function.getName().equalsIgnoreCase("date")) {
super.visit(function);
} else if (function.getName().equalsIgnoreCase("date")) {
ExpressionList<?> parameters = function.getParameters();
final CastExpression expression;
switch (parameters.size()) {
Expand All @@ -32,7 +32,5 @@ public void visit(Function function) {
break;
}
}


}
}

0 comments on commit 6f6b127

Please sign in to comment.