Skip to content

Commit

Permalink
[Rel v0.2] Migrate leftover Rel (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkastrinis authored Sep 8, 2024
1 parent 5f2ab26 commit 430c248
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rai-sdk-examples/run-all
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ set -e
./run GetModel $DATABASE $ENGINE stdlib

# exec
QUERY='x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}'
QUERY='def output(x, x2, x3, x4): {1; 2; 3; 4; 5}(x) and x2 = x^2 and x3 = x^3 and x4 = x^4'
./run Execute -c "\"$QUERY\"" $DATABASE $ENGINE
./run Execute -c "\"$QUERY\"" -readonly $DATABASE $ENGINE
#./run ./show-result.jl $DATABASE $ENGINE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void testExecuteAsync() throws HttpError, InterruptedException, IOException, URI

ensureDatabase(client);

var query = "x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}";
var query = "def output(x, x2, x3, x4): {1; 2; 3; 4; 5}(x) and x2 = x^2 and x3 = x^3 and x4 = x^4";

var rsp = client.execute(databaseName, engineName, query, true);

Expand Down
2 changes: 1 addition & 1 deletion rai-sdk/src/test/java/com/relationalai/ExecuteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ExecuteTest extends UnitTest {

ensureDatabase(client);

var query = "x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}";
var query = "def output(x, x2, x3, x4): {1; 2; 3; 4; 5}(x) and x2 = x^2 and x3 = x^3 and x4 = x^4";

var rsp = client.executeV1(databaseName, engineName, query, true);
assertEquals(rsp.aborted, false);
Expand Down

0 comments on commit 430c248

Please sign in to comment.