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

string always ends up in LONG VARCHAR #85

Open
steppel opened this issue Jun 5, 2019 · 1 comment
Open

string always ends up in LONG VARCHAR #85

steppel opened this issue Jun 5, 2019 · 1 comment

Comments

@steppel
Copy link

steppel commented Jun 5, 2019

I define the datatypes to create a table. When using string(100) it will end up in LONG VARCHAR. I do have multiple VARCHAR columns and now it always ends in teradata [Error 3933] [SQLState HY000] The Maximum Possible Row Length in the Table is too Large.

datatypes = { 'example':sqlalchemy.types.String(100) -> LONG VARCHAR
...
}
final_table.to_sql('test',td._backend._conn,schema='test',index=False,dtype=datatypes,if_exists='replace')

@sandan
Copy link
Member

sandan commented Oct 14, 2019

@steppel You should use teradatasqlalchemy which will succeed sqlalchemy-teradata. There is also a tutorial in the wiki section that points to docs on sql data types:
https://github.com/wiskojo/sqlalchemy-teradata/wiki/Data-Types#tldr

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