Support for postgres varchar of varying length as key
See original GitHub issueHey there! We are looking to use data-diff for verifying some of our data pipelines. While testing it out, we noticed that our postgres varchar fields can not be used as keys. The error for that is below.
WARNING:database:Mixed Alphanum lengths detected in column *********, disabling Alphanum support.
NotImplementedError: Cannot use column of type Text() as a key
Here are some examples of the keys being sampled
x99999m
x9990037
x99_99943z1
Is it possible to add support for varchars with variable length as keys, if so do you have an estimate for the difficulty of adding it?
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top Results From Across the Web
Should I add an arbitrary length limit to VARCHAR columns?
The answer is no. Related advice in the Postgres Wiki. Don't add a length modifier to varchar if you don't need it. (Most...
Read more >Documentation: 15: 8.3. Character Types - PostgreSQL
The notations varchar( n ) and char( n ) are aliases for character varying( n ) and character( n ) , respectively. If...
Read more >PostgreSQL Varchar, Text and Character Data Types Made ...
The different character types supported by PostgreSQL are as follows: Character(n); Char(n); Character Varying(n); Varchar(n); Text. Out of the ...
Read more >Difference between text and varchar (character varying)
If character varying is used without length specifier, the type accepts strings of any size. The latter is a PostgreSQL extension. and. In...
Read more >PostgreSQL Varchar - Javatpoint
In this section, we are going to understand the working of PostgreSQL varchar data types, which allows us to store the character of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@erezsh I pulled down the latest again, and everything seems to be working as expected!
Okay, it should be good to go 👍