Skip to content

Commit 87cd694

Browse files
bkyryliukBogdan Kyryliuk
authored andcommitted
Skeleton for remote query execution using celery. (#908)
* Carapal react mockup This is really just a mock up written in React to try different components. It could become scaffolding to build a prototype, or not. * Preliminary commit for Celery backend * Move the SQL query execution to the celery worker. * React scetch * Refactor SQL execution to use the celery if configured. * Refactor SQL execution to use the celery if configured. * Add query model * Remove QueryResult. Query has a tmp_table_name field that has all the data. * Add create table as wrapper. * Create table as * Address the comments. * Add trailing commas * Remove the init_query test. * Handle 'undefined' schema case
1 parent 9e75656 commit 87cd694

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

caravel/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,6 @@ def sql_json(self):
13481348
sql = request.form.get('sql')
13491349
database_id = request.form.get('database_id')
13501350
schema = request.form.get('schema')
1351-
mydb = session.query(models.Database).filter_by(id=database_id).first()
13521351

13531352
if not (self.can_access(
13541353
'all_datasource_access', 'all_datasource_access') or

0 commit comments

Comments
 (0)