question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for postgres varchar of varying length as key

See original GitHub issue

Hey 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:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
k-waltoncommented, Sep 19, 2022

@erezsh I pulled down the latest again, and everything seems to be working as expected!

1reaction
erezshcommented, Sep 19, 2022

Okay, it should be good to go 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found