Skip to content

Commit

Permalink
fix: Fix spelling of parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Oct 20, 2023
1 parent 35ab100 commit 03d4ada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osm_rawdata/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def importThread(
db.execute(sql)
# db.commit()

def parquatThread(
def parquetThread(
data: list,
db: Connection,
):
Expand Down Expand Up @@ -325,7 +325,7 @@ def importParquet(
chunk = round(entries / cores)

if entries <= chunk:
resut = parquatThread(data, connections[0])
resut = parquetThread(data, connections[0])
timer.stop()
return True

Expand All @@ -334,7 +334,7 @@ def importParquet(
block = 0
while block <= entries:
log.debug("Dispatching Block %d:%d" % (block, block + chunk))
result = executor.submit(parquatThread, data[block : block + chunk], connections[index])
result = executor.submit(parquetThread, data[block : block + chunk], connections[index])
block += chunk
index += 1
executor.shutdown()
Expand Down

0 comments on commit 03d4ada

Please sign in to comment.