Spaces:
Sleeping
Sleeping
revert union by name addition
Browse files
app.py
CHANGED
|
@@ -47,11 +47,11 @@ def create_fresh_duckdb_with_views():
|
|
| 47 |
# create views referencing remote parquet files
|
| 48 |
local_con.execute(f"""
|
| 49 |
CREATE OR REPLACE VIEW all_downloads AS
|
| 50 |
-
SELECT * FROM read_parquet('{hf_parquet_url_1}'
|
| 51 |
""")
|
| 52 |
local_con.execute(f"""
|
| 53 |
CREATE OR REPLACE VIEW one_year_rolling AS
|
| 54 |
-
SELECT * FROM read_parquet('{hf_parquet_url_2}'
|
| 55 |
""")
|
| 56 |
except Exception:
|
| 57 |
# If view creation fails, ensure connection is still returned for caller to handle/close
|
|
|
|
| 47 |
# create views referencing remote parquet files
|
| 48 |
local_con.execute(f"""
|
| 49 |
CREATE OR REPLACE VIEW all_downloads AS
|
| 50 |
+
SELECT * FROM read_parquet('{hf_parquet_url_1}')
|
| 51 |
""")
|
| 52 |
local_con.execute(f"""
|
| 53 |
CREATE OR REPLACE VIEW one_year_rolling AS
|
| 54 |
+
SELECT * FROM read_parquet('{hf_parquet_url_2}')
|
| 55 |
""")
|
| 56 |
except Exception:
|
| 57 |
# If view creation fails, ensure connection is still returned for caller to handle/close
|