-
Notifications
You must be signed in to change notification settings - Fork 324
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
Introduce Value_Type.Null
, fix edge cases for read_many
#11737
Open
radeusgd
wants to merge
44
commits into
develop
Choose a base branch
from
wip/radeusgd/6281-value-type-null
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+882
−254
Open
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
e993a0f
Adding Value Type Null logic
radeusgd 6927176
fixes
radeusgd b2b606e
wip
radeusgd f647799
forgot to commit file
radeusgd 9c72ebb
NullStorag
radeusgd fc63d39
WIP integrating NullStorage
radeusgd bc43d3d
fixing edge cases with Null type
radeusgd 55dfc54
updating tests
radeusgd b1b8209
can cast Null to anything
radeusgd df1db00
union with null should be possible for every type
radeusgd 6100b86
updating tests, check that Null is accepted in Data.read_many
radeusgd f268d1b
allow null col
radeusgd 98a5aa8
typo
radeusgd d8068b9
postgres
radeusgd 95e4c73
re enable some union tests
radeusgd 539a8fd
re enable some agg tests
radeusgd bebe7f2
fix a tset
radeusgd ce8bcda
fix a typo - else in wrong place...
radeusgd b4cde03
fmt
radeusgd 6d016f0
fix parser - empty column gets Null type
radeusgd a1d1774
WIP read many edge cases
radeusgd 643e324
update spec of null ops?
radeusgd 536068f
update some tests
radeusgd f8be248
from_repeated_item test
radeusgd 12ad747
Null type for null column from repeated
radeusgd 11b8bbf
add test for Null column edge cases
radeusgd af34a4b
not
radeusgd a4b901e
reconciling Null types in various operations
radeusgd 8cbed1b
implement stub ops for NullStorage so that operations on Null columns…
radeusgd 724ca47
fixing tests
radeusgd 7b6ce9f
type mappings for Postgres & SQLServer
radeusgd ddea3e4
test a few more edge cases
radeusgd dfe300b
comment, a few more tests
radeusgd 9039bbd
CR
radeusgd 351b068
cannot create NULL columns in DBs
radeusgd 71b509c
disable tests, TODO https://github.com/enso-org/enso/issues/11757
radeusgd 2fe9906
better message
radeusgd cbe47f7
more tests for https://github.com/enso-org/enso/issues/11757
radeusgd 2d0659c
yet another one for https://github.com/enso-org/enso/issues/11757
radeusgd 2e49995
update error to one with more info
radeusgd 2b94b24
update test
radeusgd fad1179
make custom aggregates work with Null input
radeusgd 7499758
Merge branch 'develop' into wip/radeusgd/6281-value-type-null
radeusgd e9fbef0
Merge branch 'develop' into wip/radeusgd/6281-value-type-null
radeusgd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this logic hard to follow. The return value would be either
Nothing
or the return value ofresult.put expr
-- but isn't the the return value ofRef.put
the old value?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return value of
put
is discarded.The function returns
ref.get
at the very end.I agree it is not ideal. This is a hack to get multiline if without adding a ton of indentation to the
else
branches. There's just too many branches here (and while sometimes too many branches is bad, here it is just intrinsic to this function) to make it readable.Once we get multiline
if
(#6408) I will be more than happy to replace this with just:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think I should rewrite it with increasing indentation?
I'd rather keep it as is as IMO it is readable once the reasons are explained.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, it makes more sense now.