Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sdk/python/rtdip_sdk/connectors/odbc/db_sql_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def fetch_all(self, fetch_size=5_000_000) -> Union[list, dict]:
for column in result.columns:
column_list.append(column.to_pylist())
rows = [str(item[0]) for item in zip(*column_list)]
sample_row = rows[0]
if len(rows) > 0:
sample_row = rows[0]
strings = ",".join(rows)
if results is None:
results = strings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def _convert_binary_to_pandas(pdf):
binary_data = binary_list[0][3]
buf = pa.py_buffer(binary_data)
table = pq.read_table(buf)
except Exception:
except Exception as e:
print(str(e))
return pd.DataFrame(
{
"EventDate": pd.Series([], dtype="datetime64[ns]"),
Expand Down