Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt pre-release deltalake 0.23 #31

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ anyhow = "=1"
chrono = "0.4.31"
aws_lambda_events = { version = "0.15.1", default-features = false, features = ["sns", "sqs", "s3"] }
# The datafusion feature is required to support invariants which may be in error, but is required as of currently released 0.18.2
deltalake = { version = "0.22.0", features = ["s3", "json", "datafusion"]}
#deltalake = { git = "https://github.com/delta-io/delta-rs", branch = "main", features = ["s3", "json", "datafusion"]}
#deltalake = { version = "0.21.0", features = ["s3", "json", "datafusion"]}
deltalake = { git = "https://github.com/delta-io/delta-rs", branch = "main", features = ["s3", "json", "datafusion"]}
#deltalake = { path = "../../delta-io/delta-rs/crates/deltalake", features = ["s3", "json", "datafusion"]}
tokio = { version = "=1", features = ["macros"] }
regex = "=1"
Expand Down
11 changes: 11 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# This is currently needed to ensure openssl libraries are bundled into the
# cross compilation image
#
# This is due to the reqwest library being pulled in recent releases with
# default features enabled, including native-tls :(
[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH"
]
2 changes: 1 addition & 1 deletion ci/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ fi;

. venv/bin/activate

exec cargo lambda build --release --output-format zip
exec cargo lambda build --compiler cross --release --output-format zip
7 changes: 0 additions & 7 deletions lambdas/file-loader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@ async fn main() -> Result<(), Error> {

let _ =
env::var("DELTA_TABLE_URI").expect("The `DELTA_TABLE_URI` must be set in the environment");
match env::var("DYNAMO_LOCK_TABLE_NAME") {
Ok(_) => {}
Err(_) => {
warn!("file-loader SHOULD have `DYNAMO_LOCK_TABLE_NAME` set to a valid name, and should have AWS_S3_LOCKING_PROVIDER=dynamodb set so that concurrent writes can be performed safely.");
}
}

info!("Starting file-loader");

run(service_fn(function_handler)).await
Expand Down
Loading