Skip to content

Commit

Permalink
moved to package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignalina committed Oct 16, 2022
1 parent 5739220 commit 3e47c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions call.go → implementation/call.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package api

import (
"fmt"
Expand All @@ -10,7 +10,7 @@ import (

/*
#cgo LDFLAGS: ./ffi/librust_impl.a -ldl -lm
#include "cdata/arrow/c/abi.h"
#include "../cdata/arrow/c/abi.h"
int from_chunks_ffi(const struct ArrowArray *arrptr, const struct ArrowSchema *schptr, uintptr_t l);
int from_chunks_ffi_voidptr(void* schema, void* array, uintptr_t l) {
return from_chunks_ffi(array, schema, l);
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/apache/arrow/go/v9/arrow"
"github.com/apache/arrow/go/v9/arrow/array"
"github.com/apache/arrow/go/v9/arrow/memory"
"github.com/ignalina/alloy/implementation"
)

func main() {
Expand All @@ -26,7 +27,7 @@ func main() {

fmt.Printf("[Go]\tCalling the goBridge with:\n\tarr: %v\n", listOfarrays)

goBridge := GoBridge{GoAllocator: mem}
goBridge := api.GoBridge{GoAllocator: mem}
i, err := goBridge.From_chunks(listOfarrays)

if nil != err {
Expand Down

0 comments on commit 3e47c86

Please sign in to comment.