emsesc commited on
Commit
0b575f7
·
1 Parent(s): 1b5583f

revert union by name addition

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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}', union_by_name=true)
51
  """)
52
  local_con.execute(f"""
53
  CREATE OR REPLACE VIEW one_year_rolling AS
54
- SELECT * FROM read_parquet('{hf_parquet_url_2}', union_by_name=true)
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