pitrou commented on code in PR #37788:
URL: https://github.com/apache/arrow/pull/37788#discussion_r1334788050
##########
dev/archery/archery/integration/tester_go.py:
##########
@@ -119,3 +131,124 @@ def flight_request(self, port, json_path=None,
scenario_name=None):
if self.debug:
log(' '.join(cmd))
run_cmd(cmd)
+
+ def make_c_data_exporter(self):
+ return GoCDataExporter(self.debug, self.args)
+
+ def make_c_data_importer(self):
+ return GoCDataImporter(self.debug, self.args)
+
+
+_go_c_data_entrypoints = """
+ const char* ArrowGo_ExportSchemaFromJson(const char* json_path,
+ uintptr_t out);
+ const char* ArrowGo_ImportSchemaAndCompareToJson(
+ const char* json_path, uintptr_t c_schema);
+
+ const char* ArrowGo_ExportBatchFromJson(const char* json_path,
+ int num_batch,
+ uintptr_t out);
+ const char* ArrowGo_ImportBatchAndCompareToJson(
+ const char* json_path, int num_batch, uintptr_t c_array);
+
+ int64_t ArrowGo_BytesAllocated();
+ void ArrowGo_RunGC();
+ void ArrowGo_FreeError(const char*);
+ """
+
+
[email protected]_cache
+def _load_ffi(ffi, lib_path=_INTEGRATION_DLL):
+ ffi.cdef(_go_c_data_entrypoints)
+ dll = ffi.dlopen(lib_path)
+ dll.ArrowGo_ExportSchemaFromJson
Review Comment:
I think it was just to validate it loaded when I started to write this code.
So I can remove it now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]