Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries endpoint. #981

Merged
merged 3 commits into from
Aug 19, 2016
Merged

Queries endpoint. #981

merged 3 commits into from
Aug 19, 2016

Conversation

bkyryliuk
Copy link
Member

@mistercrunch

  • take a peek into the interface please.

@@ -35,6 +35,7 @@ def upgrade():
sa.Column('rows', sa.Integer(), nullable=True),
sa.Column('error_message', sa.Text(), nullable=True),
sa.Column('start_time', sa.DateTime(), nullable=True),
sa.Column('changed_on', sa.DateTime(), nullable=True),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need an index on this

@bkyryliuk bkyryliuk force-pushed the bogdan/queries_endpoint_no_test branch 3 times, most recently from 762fbf5 to 7e6944b Compare August 19, 2016 01:06
sa.Column('end_time', sa.DateTime(), nullable=True),
sa.ForeignKeyConstraint(['database_id'], [u'dbs.id'], ),
sa.ForeignKeyConstraint(['user_id'], [u'ab_user.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.add_column('dbs', sa.Column('select_as_create_table_as', sa.Boolean(),
nullable=True))
op.create_index(op.f('ix_query_changed_on'), 'query', ['changed_on'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a composite index here, not 2 indexes. Here's an example:
https://github.com/apache/incubator-airflow/blob/master/airflow/models.py#L708

@bkyryliuk bkyryliuk changed the title Queries endpoint. No unit test. Queries endpoint. Aug 19, 2016
@bkyryliuk bkyryliuk force-pushed the bogdan/queries_endpoint_no_test branch from 7e6944b to e8a1a9a Compare August 19, 2016 18:05
@bkyryliuk bkyryliuk merged commit 2d00f0f into carapal Aug 19, 2016
@bkyryliuk bkyryliuk deleted the bogdan/queries_endpoint_no_test branch August 19, 2016 19:07
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants