Skip to content

Commit 568cee1

Browse files
dduttclaudious96
authored andcommitted
db/parquet: pylint fixup
Signed-off-by: Dinesh Dutt <[email protected]>
1 parent 5283d43 commit 568cee1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

suzieq/db/parquet/parquetdb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ def write(self, table_name: str, data_format: str,
225225
df = pd.DataFrame.from_dict(data["records"])
226226
table = pa.Table.from_pandas(df, schema=schema,
227227
preserve_index=False)
228+
else:
229+
raise ValueError('Unknown format of data provided:'
230+
f'{type(data)}')
228231

229232
pq.write_to_dataset(table,
230233
root_path=folder,

0 commit comments

Comments
 (0)