-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datetime format and database expression on column level (#652)
* time format minor features added * add description for datetime format input * db version bug walkaround * removed unecessary comments and fixed minor bug * fixed code style * minor fix * fixed missing time format column in DruidDatasource * Update models.py Minor style fix * Revert "Update models.py" This reverts commit 6897c38. * removed timestamp_format from druid and removed try catch in migration * Using spaces, not tabs * get the most updated migration and add the migration on the head of it * remove vscode setting file * use colunm based dttm_format * modify dttm_converter * modify datetime viz * added comments and documents * fixed some description and removed unnecessary import * fix migration head * minor style * minor style * deleted empty lines * delete print statement * add epoch converter * error fixed * fixed epoch parsing issue * delete unnecessary lines * fixed typo * fix minor error * fix styling issues * fix styling error * fixed typo * support epoch_ms and did some refactoring * fixed styling error * fixed styling error * add one more dataset to test dttm_format and db_expr * add more slices * styling * specified String() lenght
- Loading branch information
1 parent
3e742c7
commit 7a7f61a
Showing
7 changed files
with
203 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""add dttm_format related fields in table_columns | ||
Revision ID: 960c69cb1f5b | ||
Revises: d8bc074f7aad | ||
Create Date: 2016-06-16 14:15:19.573183 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '960c69cb1f5b' | ||
down_revision = 'd8bc074f7aad' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('table_columns', sa.Column('python_date_format', sa.String(length=255), nullable=True)) | ||
op.add_column('table_columns', sa.Column('database_expression', sa.String(length=255), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('table_columns', 'python_date_format') | ||
op.drop_column('table_columns', 'database_expression') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters