Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade java/sala sdk to version 0.0.4 #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.mlsql.byzer-client-sdk</groupId>
<artifactId>java-client</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>

<name>Byzer client sdk</name>
<url>https://github.com/allwefantasy/byzer-client-sdk</url>
Expand Down Expand Up @@ -67,7 +67,7 @@
<dependency>
<groupId>tech.mlsql.byzer-client-sdk</groupId>
<artifactId>scala-client_${scala.binary.version}</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -262,4 +262,4 @@
</repository>
</distributionManagement>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@
public class JavaTest {
@Test
public void testJoin() {
tech.mlsql.byzer_client_sdk.scala_lang.generator.Byzer builder = Byzer.builder();
BaseNode tableLoad1 = builder.load().format("csv").path("/tmp/jack").options().add("header", "true").end().tag("table1");
BaseNode tableLoad2 = builder.load().format("csv").path("/tmp/admond").options().add("header", "true").end().tag("table2");

tableLoad1.end();
tableLoad2.end();

String table1 = tableLoad1.tableName();
String table2 = tableLoad2.tableName();

System.out.println(table1);
System.out.println(table2);

String genCode = builder.join().
from(Expr.build(table1)).
left(Expr.build(table2)).
on(Expr.build(String.format("%s.a=%s.b", table1, table2))).
leftColumns(Expr.build(String.format("%s.a,%s.c", table1, table2))).
rightColumns(Expr.build(String.format("%s.m", table2))).end()
.toScript();
System.out.println(genCode);
// tech.mlsql.byzer_client_sdk.scala_lang.generator.Byzer builder = Byzer.builder();
// BaseNode tableLoad1 = builder.load().format("csv").path("/tmp/jack").options().add("header", "true").end().tag("table1");
// BaseNode tableLoad2 = builder.load().format("csv").path("/tmp/admond").options().add("header", "true").end().tag("table2");
//
// tableLoad1.end();
// tableLoad2.end();
//
// String table1 = tableLoad1.tableName();
// String table2 = tableLoad2.tableName();
//
// System.out.println(table1);
// System.out.println(table2);
//
// String genCode = builder.join().
// from(Expr.build(table1)).
// left(Expr.build(table2)).
// on(Expr.build(String.format("%s.a=%s.b", table1, table2))).
// leftColumns(Expr.build(String.format("%s.a,%s.c", table1, table2))).
// rightColumns(Expr.build(String.format("%s.m", table2))).end()
// .toScript();
// System.out.println(genCode);
}
}
2 changes: 2 additions & 0 deletions scala-client/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scala-client/.idea/scala_compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scala-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.mlsql.byzer-client-sdk</groupId>
<artifactId>scala-client_2.12</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
<name>Byzer client sdk</name>
<url>https://github.com/allwefantasy/byzer-client-sdk</url>
<description>
Expand Down