RussellSpitzer commented on code in PR #3363:
URL: https://github.com/apache/iceberg-rust/pull/3363#discussion_r4208771882


##########
crates/iceberg/src/transaction/snapshot.rs:
##########
@@ -34,6 +34,25 @@ use crate::table::Table;
 use crate::transaction::ActionCommit;
 use crate::{Error, ErrorKind, TableRequirement, TableUpdate};
 
+const ENGINE_NAME: &str = "iceberg-rust";
+const ENGINE_NAME_PROP: &str = "engine-name";
+const ENGINE_VERSION_PROP: &str = "engine-version";
+const ICEBERG_VERSION_PROP: &str = "iceberg-version";
+
+fn apply_writer_identity(properties: &mut HashMap<String, String>) {
+    let version = env!("CARGO_PKG_VERSION");
+    properties
+        .entry(ENGINE_NAME_PROP.to_string())
+        .or_insert_with(|| ENGINE_NAME.to_string());
+    properties
+        .entry(ENGINE_VERSION_PROP.to_string())
+        .or_insert_with(|| version.to_string());

Review Comment:
   Removed everything relating to engine-name and version and left a note on 
the pyIceberg change that they may want to go into alignment with the 
"iceberg-version" only setting



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to