Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag to turn off parquet load on Greenplum #212

Merged
merged 1 commit into from
Oct 1, 2024
Merged
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 plaidcloud/utilities/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
#
# self._load_csv(table_object, path)

def bulk_insert_dataframe(self, table_object: 'Table', df: pd.DataFrame, append: bool = False, chunk_size: int = 500000):
def bulk_insert_dataframe(self, table_object: 'Table', df: pd.DataFrame, append: bool = False, chunk_size: int = 500000, load_greenplum_parquet: bool = False):

Check warning on line 428 in plaidcloud/utilities/query.py

View workflow job for this annotation

GitHub Actions / PyLint

[PyLint] plaidcloud/utilities/query.py#L428

C0301: Line too long (163/125) (line-too-long)
Raw output
plaidcloud/utilities/query.py:428:0: C0301: Line too long (163/125) (line-too-long)

Check warning on line 428 in plaidcloud/utilities/query.py

View workflow job for this annotation

GitHub Actions / PyLint

[PyLint] plaidcloud/utilities/query.py#L428

R0913: Too many arguments (6/5) (too-many-arguments)
Raw output
plaidcloud/utilities/query.py:428:4: R0913: Too many arguments (6/5) (too-many-arguments)

Check warning on line 428 in plaidcloud/utilities/query.py

View workflow job for this annotation

GitHub Actions / PyLint

[PyLint] plaidcloud/utilities/query.py#L428

R0914: Too many local variables (23/15) (too-many-locals)
Raw output
plaidcloud/utilities/query.py:428:4: R0914: Too many local variables (23/15) (too-many-locals)

Check warning on line 428 in plaidcloud/utilities/query.py

View workflow job for this annotation

GitHub Actions / PyLint

[PyLint] plaidcloud/utilities/query.py#L428

R0912: Too many branches (15/12) (too-many-branches)
Raw output
plaidcloud/utilities/query.py:428:4: R0912: Too many branches (15/12) (too-many-branches)
"""Pandas-flavored wrapper method to the load data into PlaidCloud Table from a Dataframe
bulk_insert_dataframe(table_object, df, append, chunk_size)
"""
Expand Down Expand Up @@ -495,6 +495,7 @@
project_id=self._project_id,
table_id=table_object.id,
load_type='parquet',
load_greenplum_parquet=load_greenplum_parquet,
)
if data_load:
schema = pa.Schema.from_pandas(df)
Expand Down
Loading