Isoctcolo
12/01/2023, 5:07 PMIsoctcolo
12/01/2023, 5:08 PM2023-12-01T17:03:24.073009Z [*info* ] *TypeError: PostgresConnector.prepare_column() missing 1 required positional argument: 'column_name'* cmd_type=elb consumer=True name=target-postgres producer=False stdio=stderr string_id=target-postgres
2023-12-01T17:03:24.256505Z [*error* ]
╭─────────────────────────────── *Traceback (most recent call last)* ────────────────────────────────╮
│ /home/airflow/.local/pipx/venvs/meltano/lib/python3.10/site-packages/meltano/core/logging/*output* │
│ *_logger.py*:207 in redirect_logging │
│ │
│ 204 │ │ │ *ignore_errors, │
│ 205 │ │ ) │
│ 206 │ │ try: │
│ ❱ 207 │ │ │ yield │
│ 208 │ │ except ignored_errors: # noqa: WPS329 │
│ 209 │ │ │ raise │
│ 210 │ │ except RunnerError as err: │
│ │
│ /home/airflow/.local/pipx/venvs/meltano/lib/python3.10/site-packages/meltano/core/block/*extract_* │
│ *load.py*:444 in run │
│ │
`│ 441 │ │ │ # TODO: legacy meltano elt
style logging should be deprecated │`
│ 442 │ │ │ legacy_log_handler = self.output_logger.out("meltano", logger) │
│ 443 │ │ │ with legacy_log_handler.redirect_logging(): │
│ ❱ 444 │ │ │ │ await self.run_with_job() │
│ 445 │ │ │ │ return │
│ 446 │ │ else: │
│ 447 │ │ │ logger.warning( │
│ │
│ /home/airflow/.local/pipx/venvs/meltano/lib/python3.10/site-packages/meltano/core/block/*extract_* │
│ *load.py*:476 in run_with_job │
│ │
│ 473 │ │ │
│ 474 │ │ with closing(self.context.session) as session: │
│ 475 │ │ │ async with job.run(session): │
│ ❱ 476 │ │ │ │ await self.execute() │
│ 477 │ │
│ 478 │ async def terminate(self, graceful: bool = False) -> None: │
│ 479 │ │ """Terminate an in flight ExtractLoad execution, potentially disruptive. │
│ │
│ /home/airflow/.local/pipx/venvs/meltano/lib/python3.10/site-packages/meltano/core/block/*extract_* │
│ *load.py*:436 in execute │
│ │
│ 433 │ │ async with self._start_blocks(): │
│ 434 │ │ │ await self._link_io() │
│ 435 │ │ │ manager = ELBExecutionManager(self) │
│ ❱ 436 │ │ │ await manager.run() │
│ 437 │ │
│ 438 │ async def run(self) -> None: │
│ 439 │ │ """Run the ELT task.""" │
`│ …edgar_ramirez_mondragon
12/01/2023, 6:31 PMmain
branch in pip_url
? Some breaking changes may have landed on that branch recently.
cc @visch @sebastian in case you folks know what's going onIsoctcolo
12/01/2023, 6:39 PMIsoctcolo
12/01/2023, 6:41 PMIsoctcolo
12/01/2023, 6:42 PMvisch
12/01/2023, 6:43 PMvisch
12/01/2023, 6:46 PMprepare_column
and I'm not seeing thatvisch
12/01/2023, 6:47 PMmeltano.yml
, and then run meltano install --clean
just to be sure we have you on the latest versionIsoctcolo
12/01/2023, 6:47 PMvisch
12/01/2023, 6:48 PMvisch
12/01/2023, 6:50 PMpypi
which is an older version (we haven't done a release in a bit) but that error still shouldn't be getting hit. I'll try using the pypi versionIsoctcolo
12/01/2023, 6:51 PMvisch
12/01/2023, 6:52 PMmeltanolabs-target-postgres~=0.0.7
is not from meltano add
so maybe you hard coded that version? Try removing that version modifiervisch
12/01/2023, 6:53 PMvisch
12/01/2023, 6:56 PM~=
I'm not sure exactly how that solves for 0.0.* with semver it might still pull the latest.
I'm definitely confused as I can't replicate the issue.
I should definietly release the latest version to pypi regardless but I doubt that fixes thisIsoctcolo
12/01/2023, 6:58 PMvisch
12/01/2023, 7:00 PMtarget-postgres
portion of the trace hereIsoctcolo
12/01/2023, 7:03 PM2023-12-01T19:02:28.458822Z [*debug* ] *Project is read-only.*
2023-12-01T19:02:28.473831Z [*debug* ] */etc/timezone found, contents:*
Etc/UTC
2023-12-01T19:02:28.474209Z [*debug* ] */etc/localtime found*
2023-12-01T19:02:28.474904Z [*debug* ] *2 found:*
{'/etc/timezone': 'Etc/UTC', '/etc/localtime is a symlink to': 'Etc/UTC'}
2023-12-01T19:02:28.481480Z [*info* ] *Environment 'dev' is active*
2023-12-01T19:02:28.497959Z [*debug* ] *Creating DB engine for project at '/home/airflow/builds/93f21a7/meltano/dvload' with DB xxxxx*
2023-12-01T19:02:28.508433Z [*debug* ] *couldn't import psycopg 'c' implementation: No module named 'psycopg_c'*
2023-12-01T19:02:28.687301Z [*debug* ] *Found plugin parent* parent=tap-salesforce plugin=tap-salesforce source=<DefinitionSource.LOCKFILE: 4>
2023-12-01T19:02:28.687801Z [*debug* ] *Found plugin parent* parent=tap-salesforce plugin=tap-salesforce--bulk source=<DefinitionSource.INHERITED: 8>
2023-12-01T19:02:29.313010Z [*debug* ] *Found plugin parent* parent=target-postgres plugin=target-postgres source=<DefinitionSource.LOCKFILE: 4>
2023-12-01T19:02:29.583072Z [*debug* ] *Variable '$TARGET_POSTGRES_SCHEMA' is not set in the provided env dictionary.*
2023-12-01T19:02:29.584589Z [*info* ] *Running extract & load...* name=meltano run_id=e243b37c-8f8f-403d-b844-1b41fb00c826 state_id=2023-12-01T190228--tap-salesforce--bulk--target-postgres
Isoctcolo
12/01/2023, 7:04 PMvisch
12/01/2023, 7:04 PM2023-12-01T17:03:24.073009Z [info ] TypeError: PostgresConnector.prepare_column() missing 1 required positional argument: 'column_name' cmd_type=elb consumer=True name=target-postgres producer=False stdio=stderr string_id=target-postgres
would come from but I"ll just let it go, glad it's not the target!Isoctcolo
12/01/2023, 7:05 PMIsoctcolo
12/01/2023, 7:13 PMIsoctcolo
12/01/2023, 7:13 PMedgar_ramirez_mondragon
12/01/2023, 7:14 PMcouldn't import psycopg 'c' implementation: No module named 'psycopg_c'
is not an error, just a debug log: https://github.com/psycopg/psycopg/issues/665#issuecomment-1772281448Isoctcolo
12/01/2023, 7:17 PMIsoctcolo
12/01/2023, 7:21 PMvisch
12/01/2023, 7:23 PMvisch
12/01/2023, 7:23 PMvisch
12/01/2023, 7:26 PMedgar_ramirez_mondragon
12/01/2023, 7:30 PMdef prepare_column(
self,
full_table_name: str,
column_name: str,
sql_type: sqlalchemy.types.TypeEngine,
) -> None:
target-postgres:
def prepare_column( # type: ignore[override]
self,
schema_name: str,
table: sqlalchemy.Table,
column_name: str,
sql_type: sqlalchemy.types.TypeEngine,
connection: sqlalchemy.engine.Connection,
column_object: sqlalchemy.Column | None = None,
) -> None:
First one has 2 positional-only, second one has 3. The # type: ignore[override]
is probably hiding a real error.edgar_ramirez_mondragon
12/01/2023, 7:33 PMagainst releasing target-postgres as is? I don't think there's any new major bugs? The big switch is JSONB.Not at all against 🙂
visch
12/01/2023, 7:40 PMIsoctcolo
12/01/2023, 7:44 PMIsoctcolo
12/01/2023, 7:51 PMsebastian
12/01/2023, 7:57 PMvisch
12/01/2023, 9:07 PMadd_record_metadata
config to true your stuff will workIsoctcolo
12/01/2023, 9:55 PMIsoctcolo
12/03/2023, 2:43 PMIsoctcolo
12/07/2023, 11:05 AMvisch
12/07/2023, 2:58 PMIsoctcolo
12/07/2023, 9:09 PM