-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The problem
- clone the latest main
- cd climate_ref
- uv sync
- source .venv/bin/activate
- ref datasets --help
The error:
│ /autofs/nccsopen-svm1_home/mfx/MyGit/climate-ref/.venv/lib64/python3.11/site-packages/sqlalchemy/engine/base.py:1964 in _exec_single_context │
│ │
│ 1961 │ │ │ │ │ │ │ evt_handled = True ╭─────────────────────────────────────────────────── locals ───────────────────────────────────────────────────╮ │
│ 1962 │ │ │ │ │ │ │ break │ context = <sqlalchemy.dialects.sqlite.base.SQLiteExecutionContext object at 0x7f6289fecd10> │ │
│ 1963 │ │ │ │ if not evt_handled: │ cursor = <sqlite3.Cursor object at 0x7f628a643540> │ │
│ ❱ 1964 │ │ │ │ │ self.dialect.do_execute( │ dialect = <sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite object at 0x7f628c8fe3d0> │ │
│ 1965 │ │ │ │ │ │ cursor, str_statement, effective_parameters, context │ effective_parameters = () │ │
│ 1966 │ │ │ │ │ ) │ evt_handled = False │ │
│ 1967 │ parameters = [()] │ │
│ │ self = <sqlalchemy.engine.base.Connection object at 0x7f628a7e9e50> │ │
│ │ statement = <sqlalchemy.dialects.sqlite.base.SQLiteDDLCompiler object at 0x7f6289fecd50> │ │
│ │ str_statement = 'ALTER TABLE metric_value ADD COLUMN type VARCHAR(6) NOT NULL' │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /autofs/nccsopen-svm1_home/mfx/MyGit/climate-ref/.venv/lib64/python3.11/site-packages/sqlalchemy/engine/default.py:945 in do_execute │
│ │
│ 942 │ │ cursor.executemany(statement, parameters) ╭────────────────────────────────────────────── locals ──────────────────────────────────────────────╮ │
│ 943 │ │ context = <sqlalchemy.dialects.sqlite.base.SQLiteExecutionContext object at 0x7f6289fecd10> │ │
│ 944 │ def do_execute(self, cursor, statement, parameters, context=None): │ cursor = <sqlite3.Cursor object at 0x7f628a643540> │ │
│ ❱ 945 │ │ cursor.execute(statement, parameters) │ parameters = () │ │
│ 946 │ │ self = <sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite object at 0x7f628c8fe3d0> │ │
│ 947 │ def do_execute_no_params(self, cursor, statement, context=None): │ statement = 'ALTER TABLE metric_value ADD COLUMN type VARCHAR(6) NOT NULL' │ │
│ 948 │ │ cursor.execute(statement) ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
OperationalError: (sqlite3.OperationalError) Cannot add a NOT NULL column with default value NULL
[SQL: ALTER TABLE metric_value ADD COLUMN type VARCHAR(6) NOT NULL]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
Definition of "done"
Additional context
Metadata
Metadata
Assignees
Labels
No labels