Commit 6a73b57f authored by sim-baz's avatar sim-baz

Modification names tables

parent 3af41a3f
......@@ -3,8 +3,8 @@ import csv
import re
FILE_NAME = "asos.txt"
table_name_space = "data"
table_name_date = "data_by_date"
table_name_space = "station"
table_name_date = "date"
# Country: Finland
# Dates : 2001 to 2010
......@@ -373,15 +373,15 @@ dict = loadata(FILE_NAME)
# print(f"Datas inserted into {table_name_space}")
# # --------------------------------------------------------
# --------------------------------------------------------
# A faire seulement 1 fois pour charger les données
session.execute(dropTableQuery(table_name_date))
print(f"Table {table_name_date} dropped")
session.execute(createTableQueryPartitionningByDate(table_name_date))
print(f"Table {table_name_date} created")
print(f"Starting inserting datas into table {table_name_date}")
for d in dict:
session.execute(insertQueryData(d, table_name_date))
print(f"Datas inserted into {table_name_date}")
# --------------------------------------------------------
\ No newline at end of file
# # --------------------------------------------------------
# # A faire seulement 1 fois pour charger les données
# session.execute(dropTableQuery(table_name_date))
# print(f"Table {table_name_date} dropped")
# session.execute(createTableQueryPartitionningByDate(table_name_date))
# print(f"Table {table_name_date} created")
# print(f"Starting inserting datas into table {table_name_date}")
# for d in dict:
# session.execute(insertQueryData(d, table_name_date))
# print(f"Datas inserted into {table_name_date}")
# # --------------------------------------------------------
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment