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

Error while inserting empty NOT NULL string #13052

Open
SloNN opened this issue Dec 26, 2024 · 0 comments
Open

Error while inserting empty NOT NULL string #13052

SloNN opened this issue Dec 26, 2024 · 0 comments
Assignees

Comments

@SloNN
Copy link
Collaborator

SloNN commented Dec 26, 2024

Executing test in main version

        self.query(
            f"""
            CREATE TABLE `{table_name}` (
                id Int64 NOT NULL,
                value Utf8 NOT NULL,
                PRIMARY KEY (id)
            )
            PARTITION BY HASH(id)
            WITH(STORE=COLUMN)
            """
        )

        # Insert multiple rows
        for i in range(100):
            self.query(
                f"""
                UPSERT INTO `{table_name}` (id, value) VALUES ({i}, '');
                """
            )

But receives an error

E   ydb.issues.BadRequest: message: "Bad request. Table `/Root/insert_table_test_inserts.py.TestYdbInsertsOperations.test_insert_multiple_empty_rows_multiple`. { <main>: Fatal: cannot prepare incoming batch: empty field for non-default column: \'value\' }" issues { message: "cannot prepare incoming batch: empty field for non-default column: \'value\'" } (server_code: 400010)
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

2 participants