Skip to content

Commit

Permalink
fix commit info
Browse files Browse the repository at this point in the history
  • Loading branch information
zachschuermann committed Oct 3, 2024
1 parent 59df243 commit 10355e6
Showing 1 changed file with 36 additions and 31 deletions.
67 changes: 36 additions & 31 deletions kernel/src/transaction.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::sync::{Arc, LazyLock};
use std::sync::Arc;

use crate::actions::get_log_schema;
use crate::expressions::Scalar;
Expand Down Expand Up @@ -42,36 +42,41 @@ impl Transaction {
let actions = self.commit_info.into_iter().map(|commit_info| {
// expression to select all the columns
let commit_info_expr = Expression::Struct(vec![
//Expression::Literal(Scalar::Null(
// action_schema
// .project(&[crate::actions::ADD_NAME])
// .unwrap()
// .into(),
//)),
//Expression::Literal(Scalar::Null(
// action_schema
// .project(&[crate::actions::REMOVE_NAME])
// .unwrap()
// .into(),
//)),
//Expression::Literal(Scalar::Null(
// action_schema
// .project(&[crate::actions::METADATA_NAME])
// .unwrap()
// .into(),
//)),
//Expression::Literal(Scalar::Null(
// action_schema
// .project(&[crate::actions::PROTOCOL_NAME])
// .unwrap()
// .into(),
//)),
//Expression::Literal(Scalar::Null(
// action_schema
// .project(&[crate::actions::TRANSACTION_NAME])
// .unwrap()
// .into(),
//)),
Expression::Literal(Scalar::Null(
action_schema
.field(crate::actions::ADD_NAME)
.unwrap()
.data_type()
.clone(),
)),
Expression::Literal(Scalar::Null(
action_schema
.field(crate::actions::REMOVE_NAME)
.unwrap()
.data_type()
.clone(),
)),
Expression::Literal(Scalar::Null(
action_schema
.field(crate::actions::METADATA_NAME)
.unwrap()
.data_type()
.clone(),
)),
Expression::Literal(Scalar::Null(
action_schema
.field(crate::actions::PROTOCOL_NAME)
.unwrap()
.data_type()
.clone(),
)),
Expression::Literal(Scalar::Null(
action_schema
.field(crate::actions::TRANSACTION_NAME)
.unwrap()
.data_type()
.clone(),
)),
Expression::Struct(
commit_info
.schema
Expand Down

0 comments on commit 10355e6

Please sign in to comment.