Skip to content

Commit 430c248

Browse files
authored
[Rel v0.2] Migrate leftover Rel (#47)
1 parent 5f2ab26 commit 430c248

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rai-sdk-examples/run-all

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ set -e
3333
./run GetModel $DATABASE $ENGINE stdlib
3434

3535
# exec
36-
QUERY='x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}'
36+
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'
3737
./run Execute -c "\"$QUERY\"" $DATABASE $ENGINE
3838
./run Execute -c "\"$QUERY\"" -readonly $DATABASE $ENGINE
3939
#./run ./show-result.jl $DATABASE $ENGINE

rai-sdk/src/test/java/com/relationalai/ExecuteAsyncTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void testExecuteAsync() throws HttpError, InterruptedException, IOException, URI
4141

4242
ensureDatabase(client);
4343

44-
var query = "x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}";
44+
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";
4545

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

rai-sdk/src/test/java/com/relationalai/ExecuteTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ExecuteTest extends UnitTest {
3535

3636
ensureDatabase(client);
3737

38-
var query = "x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}";
38+
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";
3939

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

0 commit comments

Comments
 (0)