Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.3 KB

README.adoc

File metadata and controls

53 lines (40 loc) · 1.3 KB

Spark Connect for Rust

A Spark Connect client implementation in Rust. This repository provides both a Rust library for interacting with Spark Connect APIs and also a simple command line for sending Spark SQL commands to any Spark Connect endpoint.

Table of Contents

Building

Building can be done with cargo by invoking cargo build and cargo test

Using

CLI

The spark-connect-cli binary can be used to run Spark SQL commands against the Spark Connect server, for example:

% cargo run --bin spark-connect-cli
>> create temporary view people as select current_date();
+-------------+
| show_string |
+-------------+
| (0 rows)    |
|             |
+-------------+
>> select * from people;
+-------------------------------+
| show_string                   |
+-------------------------------+
| -RECORD 0-------------------- |
|  current_date() | 2023-07-06  |
|                               |
+-------------------------------+
>>

In Rust

Consult the Rustdocs for tips on how to use the library.