Skip to content

Conversation

@francis-du
Copy link
Contributor

Close #16

if let Ok(value) = obj.extract::<bool>(py) {
ScalarValue::Boolean(Some(value))
} else if let Ok(value) = obj.extract::<i64>(py) {
ScalarValue::Int64(Some(value))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use UInt64 here. We don't have any Int64 configs.

@francis-du
Copy link
Contributor Author

@andygrove Hi Andy, cloud you review this PR, if you have time.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @francis-du

@andygrove andygrove merged commit 0b00c6f into apache:master Sep 27, 2022
@francis-du francis-du deleted the py_config branch November 11, 2022 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for key-value pair configuration settings

2 participants