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

enable ArrowVisitor on arrow::NullType #246

Merged
merged 2 commits into from
May 28, 2021

Conversation

danielmawhirter
Copy link
Contributor

@danielmawhirter danielmawhirter commented May 26, 2021

Correctly handling NullType allows for typeless-nulls, like the Cypher null keyword.
A Scalar (std::shared_ptr<arrow::Scalar>) can be verified to be null in several ways:
scalar->type->Equals(arrow::null()) (typeless null)
scalar->type->id() == arrow::Type::NA (typeless null)
dynamic_cast<arrow::NullScalar*>(scalar.get()) != nullptr (typeless null)
scalar->is_valid == false (possibly typed null)

@danielmawhirter
Copy link
Contributor Author

danielmawhirter commented May 26, 2021

Resolves #10 while I'm here, json_checker moved to enterprise a while ago

@danielmawhirter
Copy link
Contributor Author

Relevant to #25

Copy link
Contributor

@witchel witchel left a comment

Choose a reason for hiding this comment

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

The code looks fine, but are we generating the typeless nulls? Because in GraphUpdate I always generate null's using the property schema type.

@danielmawhirter
Copy link
Contributor Author

The code looks fine, but are we generating the typeless nulls? Because in GraphUpdate I always generate null's using the property schema type.

Up to this point we haven't, partially due to this limitation. Query has a use case that wants them now though (Cypher null keyword), so IMO it's time to enable them

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.

2 participants