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.

Doesn't import custom column types like ArrowType from the right place

See original GitHub issue

Migrated issue, originally created by nickretallack (@nickretallack)

I wrote a simple model in Flask-SQLAlchemy like this:

from sqlalchemy_utils.types.arrow import ArrowType
class MyModel(db.Model):
    created_at = db.Column(ArrowType)

Then I generated the migration using Flask-Migrate, which uses Alembic internally, and it generated this:

...
import sqlalchemy as sa
...
    sa.Column('created_at', sa.ArrowType(), nullable=True),
...

Of course, ArrowType is not part of sqlalchemy, so I edited it to import it from the right place. It’d be cool if it got the import correct

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
sqlalchemy-botcommented, Nov 27, 2018

Michael Bayer (@zzzeek) wrote:

also, I’m an older person, sorry if this is normal for younger folks these days but calling my code “pretty shitty” is not a great way to inspire me to care about changing it for you.

0reactions
sqlalchemy-botcommented, Nov 27, 2018

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Custom columns not appearing import mapping
Solved: I have created a custom field "Occupation" into the standard CDS Contact Table. and now am tying to import data from an...
Read more >
How to use Arrow type in FastAPI response schema?
Add a custom function with the @validator decorator that returns the desired _datetime of the object: class ProductResponse(BaseModel): id: ...
Read more >
Solved: Data doesn't get populated in the custom column of...
When I am importing(attaching) a JSON file to the data source, data is not populated to a custom column instead new columns are...
Read more >
How to create a combination chart in PowerPoint
In the Insert Chart dialog box, select the Combo tab and then: Choose a Custom Combination chart,; For the second data series, choose...
Read more >
Formats for Input and Output Data | ClickHouse Docs
The TabSeparated format is convenient for processing data using custom ... Numbers that do not fit into the corresponding data type may be...
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