This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use spark_connect_rs::{SparkSession, SparkSessionBuilder}; | |
use spark_connect_rs::dataframe::SaveMode; | |
use spark_connect_rs::functions as F; | |
use spark_connect_rs::types::*; | |
#[tokio::main] | |
async fn main() -> Result<(), Box<dyn std::error::Error>> { | |
let spark: SparkSession = SparkSessionBuilder::remote("sc://127.0.0.1:15002/") | |
.build() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use spark_connect_rs; | |
use spark_connect_rs::dataframe::SaveMode; | |
use spark_connect_rs::{SparkSession, SparkSessionBuilder}; | |
#[tokio::main] | |
async fn main() -> Result<(), Box<dyn std::error::Error>> { | |
let spark: SparkSession = | |
SparkSessionBuilder::remote("sc://127.0.0.1:15002/;user_id=example_rs") | |
.build() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Response to two code questions | |
# These functions can be further improved by type checking the input values with `isinstance` |