[DRAFT] Table as column draft #3312
Draft
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.
As should be fairly obvious, this PR is to allow for using a table's name as though it were a column, which is required for:
This will be integrated with the following PR after comments are made here, but this is separate just to make it a little easier to look over.
DoltgresFunctionis a stand-in for a regular Doltgres function, andDoltgresHookExpressionis a stand-in for an expression that will be returned by the hooks interface via Doltgres' integration.I tried a few different methods of achieving this, but this seems to be the most straightforward (and most compatible) method I tried. There may be failure cases with this approach, but none seemed obvious from test cases. It's worth noting that this "fully works", in that debugging by stepping through shows that everything is where it needs to be for the hooks integration, so besides general cleanup and all the locations that I've marked can be removed, this can be treated with relatively high scrutiny.