Skip to content

Commit

Permalink
fix: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
davisusanibar committed Jan 25, 2024
1 parent 1667cd7 commit 4677b9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class IsthmusEntryPoint implements Callable<Integer> {
private String sql;

@Option(
names = {"-e", "--sqlExpression"},
names = {"-e", "--expression"},
description = "The sql expression we should parse.")
private String sqlExpression;

Expand Down
14 changes: 10 additions & 4 deletions isthmus/src/test/script/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ $CMD 'select * from lineitem where l_orderkey > 10' --create "${LINEITEM}"
# SQL Query - Aggregate
$CMD 'select l_orderkey, count(l_partkey) from lineitem group by l_orderkey' --create "${LINEITEM}"

# SQL Expression - Filter
$CMD --sqlExpression 'l_orderkey > 10' --create "${LINEITEM}"
# SQL Expression - Literal expression
$CMD --expression '10'

# SQL Expression - Projection
$CMD --sqlExpression 'l_orderkey + 9888486986' --create "${LINEITEM}"
# SQL Expression - Reference expression
$CMD --expression 'l_suppkey' --create "${LINEITEM}"

# SQL Expression - Filter expression
$CMD --expression 'l_orderkey > 10' --create "${LINEITEM}"

# SQL Expression - Projection expression
$CMD --expression 'l_orderkey + 9888486986' --create "${LINEITEM}"

0 comments on commit 4677b9e

Please sign in to comment.