-
Notifications
You must be signed in to change notification settings - Fork 1
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
How should nulls be handled? #39
Comments
Are there cases where I'd do anything useful with a null? Here is an example of removing them. I want to store some part of the namespace to SQL. Assume the table doesn't exist yet. I read an ElementID on the API to get the values out, and on the first read try and create the SQL table with the data. I have nulls in the data. What do I do? I can't create a column of type null. So I need to leave them out anyway, and update the table later if/when that attribute has a value. I personally I'm not a fan of null, NaN, etc, but I lose this battle with my dev team all the time. The hard part is null doesn't have a data type and not all destination systems support. |
The OPC UA rules: Types are nullable or non-nullable. |
To your original points @jwise-mfg:
Regarding type, I believe all our types should be |
There are 2 contexts where null shows up:
In OPC UA 1) is always nullable. The additional rules apply only to fields in structures. Null is not necessarily |
Discussion points so far:
The text was updated successfully, but these errors were encountered: