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

Nullability mark for optional type can not be processed when creating tables with YQL #5

Closed
kaifeur opened this issue Apr 19, 2022 · 3 comments

Comments

@kaifeur
Copy link

kaifeur commented Apr 19, 2022

CREATE TABLE `a` (
    `b` Int64?,
    PRIMARY KEY (`b`)
);

This script can't be executed because of YQL type incompatibility error. It's quite strange considering that YDB supports only nullable types.

Of course, if there is no plans for the future support of non-nullable types, then we can create nullable columns without nullability mark.

@spuchin
Copy link
Collaborator

spuchin commented Apr 20, 2022

All columns in CREATE TABLE are already nullable by default, no explicit optional mark required (it will actually add second level of optionality).

Non-nullable types will be supported later with NOT NULL column setting:

CREATE TABLE Test (
    Key Int64 NOT NULL,
    PRIMARY KEY (Key)
);

@vladd11
Copy link

vladd11 commented Apr 22, 2022

Non-nullable types will be supported later with NOT NULL column setting:

Excuse me for offtopic, but how seen it will be supported in serverless YDB?

@spuchin
Copy link
Collaborator

spuchin commented Apr 24, 2022

We'll report in #4 once it is available.

@spuchin spuchin closed this as completed May 11, 2022
robot-piglet pushed a commit that referenced this issue Oct 20, 2023
…inter'

```
   #0 0x23d0d55b in GetSchemePrefixSize(TBasicStringBuf<char, std::__y1::char_traits<char> >) /home/vmordovin/src/arcadia/fuse/arcadia/library/cpp/string_utils/url/url.cpp:111:11
    #1 0x23d0ce99 in GetSchemeHostAndPort(TBasicStringBuf<char, std::__y1::char_traits<char> >, bool, bool) /home/vmordovin/src/arcadia/fuse/arcadia/library/cpp/string_utils/url/url.cpp:173:31
    #2 0x23d0da8b in NUrl::SplitUrlToHostAndPath(TBasicStringBuf<char, std::__y1::char_traits<char> >) /home/vmordovin/src/arcadia/fuse/arcadia/library/cpp/string_utils/url/url.cpp:68:27
    #3 0x23d0da8b in SplitUrlToHostAndPath(TBasicStringBuf<char, std::__y1::char_traits<char> >, TBasicStringBuf<char, std::__y1::char_traits<char> >&, TBasicStringBuf<char, std::__y1::char_traits<char> >&) /hom
e/vmordovin/src/arcadia/fuse/arcadia/library/cpp/string_utils/url/url.cpp:201:31
    #4 0x2c0d8715 in NReportSnippets::SplitGreenUrl(NSc::TValue&, TBasicStringBuf<char, std::__y1::char_traits<char> >, TBasicStringBuf<char, std::__y1::char_traits<char> >) /home/vmordovin/src/arcadia/fuse/arca
dia/search/web/util/report_snippets/report_snippets.cpp:50:5
    #5 0x2363d63b in (anonymous namespace)::TReportSnippetGenericContext::ProcessGrouping(TMetaGrouping&, TGroupingIndex const&, IMetaRearrangeContext::TRearrangeParams const&) /home/vmordovin/src/arcadia/fuse/a
rcadia/search/web/rearrange/rep_snip_generic/generic.cpp:129:21
...
```
Alnen added a commit to Alnen/ydb that referenced this issue Jan 31, 2024
Alnen added a commit to Alnen/ydb that referenced this issue Feb 16, 2024
@vitstn vitstn mentioned this issue Mar 1, 2024
8 tasks
MBkkt pushed a commit to MBkkt/ydb that referenced this issue May 31, 2024
robot-piglet pushed a commit that referenced this issue Aug 4, 2024
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

No branches or pull requests

3 participants