Open florisvink opened 1 year ago
This looks like a SQLAlchemy error related to instantiating your Redshift table. This may have something to do with this: https://github.com/sqlalchemy/sqlalchemy/issues/7730 where unique constraints cause issues.
It could be worth trying the redshift dialect here instead of the 'postgresql' we use today: https://github.com/GoogleCloudPlatform/professional-services-data-validator/blob/develop/third_party/ibis/ibis_redshift/__init__.py#L50
If that works, we can look into updating it in our develop branch.
@florisvink
Is the issue fixed after changing the dialect?
Hi @florisvink and @piyushsarraf! Any updates on this issue?
Hi @helensilva14 I think changing the dialect to redshift would solve the issue
@florisvink can you please confirm?
So instead of driver=f'postgresql+{driver}',
I can try driver=f'redshift+{driver}',
after installing https://pypi.org/project/sqlalchemy-redshift/ ?
So instead of
driver=f'postgresql+{driver}',
I can trydriver=f'redshift+{driver}',
after installing https://pypi.org/project/sqlalchemy-redshift/ ?
@florisvink exactly, that's the code change we're asking for you to validate! Let us know if it works or if you need any help.
For some tables I got the following error:
AttributeError: 'NoneType' object has no attribute 'split'
.What could that be?
Stacktrace: