dolthub / dolthub/doltpy

Error on inserting empty byte array into JSON column using doltpy

Open
#168 0 comments 0 reactions 1 assignee Claimed by @jycor View on GitHub
Dominant language
Python
Stars
62
Forks
12
PR merge metrics
No merged PRs in 30d

Description

For a table defined like this:

```sql
CREATE TABLE test (
id integer NOT NULL,
json_id json DEFAULT '{}' NOT NULL
)
```

Inserting into this table with `write_rows` fails if `json_id` is an empty byte array. Error:

`column name 'json_id' is non-nullable but attempted to set a value of null`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.