Adding support for T-SQL's temporal table #2470
Closed
Rik-de-Kort
started this conversation in
Ideas
Replies: 1 comment
-
@Rik-de-Kort sorry for the delayed response, probably missed the notification of this thread being created. To answer your question - yes, your suggestion sounds about right. For your particular example there may be a couple more problems, though, as we currently don't parse Feel free to join our slack community if you wanna get in touch and chat about their implementation and more. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to have a go at implementing support for T-SQL temporal table syntax, but I'm new to the codebase so I was hoping I could get some feedback whether I'm on the right path.
In effect, the objective is to be able to parse create table statements like this:
Currently parsing gets stuck on "ROW" as the presence of "GENERATED" makes
sqlglot
assume we're looking at an identity column. To preserve backwards compatibility, I propose addingGeneratedAsRowColumnConstraint
toexpressions.py
and then modifyParser._parse_generated_as_identity
to be able to return this type. Does that sound about right?Beta Was this translation helpful? Give feedback.
All reactions