Skip to content

Commit 87a1db3

Browse files
committed
add support for big float and fix tests
1 parent a8475f6 commit 87a1db3

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

.github/workflows/ci-dgraph4j-tests.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ jobs:
1818
name: dgraph4j-tests
1919
runs-on: ubuntu-20.04
2020
steps:
21-
- name: Checkout Dgraph repo # use latest dgraph build
22-
uses: actions/checkout@v4
23-
with:
24-
path: dgraph
25-
repository: dgraph-io/dgraph
26-
ref: main
2721
- name: Checkout dgraph4j repo
2822
uses: actions/checkout@v4
2923
with:
@@ -37,21 +31,21 @@ jobs:
3731
uses: gradle/actions/setup-gradle@v4
3832
with:
3933
gradle-version: current
40-
- name: Get Go Version
41-
run: |
42-
#!/bin/bash
43-
cd dgraph
44-
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
45-
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
34+
- name: Checkout Dgraph repo # use latest dgraph build
35+
uses: actions/checkout@v4
36+
with:
37+
path: dgraph
38+
repository: dgraph-io/dgraph
39+
ref: main
4640
- name: Set up Go
4741
uses: actions/setup-go@v5
4842
with:
49-
go-version: ${{ env.GOVERSION }}
43+
go-version-file: dgraph/go.mod
5044
- name: Build dgraph binary
5145
run: cd dgraph && make docker-image # builds docker image with local tag
5246
- name: Spin up local dgraph cluster
5347
run: cd dgraph4j && docker compose -f docker-compose.test.yml up -d
5448
- name: Run tests
55-
run: cd dgraph4j && gradle build
49+
run: cd dgraph4j && gradle build -i
5650
- name: Tear down cluster
5751
run: cd dgraph4j && docker compose -f docker-compose.test.yml down

src/main/proto/api.proto

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017 Dgraph Labs, Inc. and Contributors
2+
* Copyright (C) 2023 Dgraph Labs, Inc. and Contributors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,12 +23,7 @@ syntax = "proto3";
2323

2424
package api;
2525

26-
/* import "gogoproto/gogo.proto"; */
27-
28-
/* option (gogoproto.marshaler_all) = true; */
29-
/* option (gogoproto.sizer_all) = true; */
30-
/* option (gogoproto.unmarshaler_all) = true; */
31-
/* option (gogoproto.goproto_getters_all) = true; */
26+
option go_package = "github.com/dgraph-io/dgo/v240/protos/api";
3227

3328
option java_package = "io.dgraph";
3429
option java_outer_classname = "DgraphProto";
@@ -175,7 +170,7 @@ message Value {
175170
bytes datetime_val = 9;
176171
string password_val = 10;
177172
uint64 uid_val=11;
178-
// number 12 is reserved for bigfloat
173+
bytes bigfloat_val=12;
179174
bytes vfloat32_val=13;
180175
}
181176
}

0 commit comments

Comments
 (0)