Doesn't import custom column types like ArrowType from the right place
See original GitHub issueMigrated 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:
- Created 9 years ago
- Comments:15
Top 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 >
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 Free
Top 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
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.
Changes by Michael Bayer (@zzzeek):