Skip to content

Conversation

@stevenhsd
Copy link
Contributor

No description provided.

@sonarqubecloud
Copy link

delim: str = ",",
quotechar: str = '"',
connection: Optional[DuckDBPyConnection] = None,
field_check: bool = False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think if we are adding these attributes then we need to add them to the docstrings explaining to the user what they are. Not as obvious vs existing attrs like header, delim etc.

expression_list = _split_multiexpr_string(expressions)
return expr_array_to_columns(expression_list)

def check_csv_header_expected(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to base utils? Not specific to a backend

self._logger.exception(exc)
sub_stats = None
report_uri = None
submission_status.processing_failed = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build a submission status if there isn't a submission status. Then you don't need if sub_stats on line 152. Check the error_report child method to check if there any scenarios where the submission_status is returned.

"|",
{"str_field": (str, ...), "int_field": (int, ...), "date_field": (dt.date, dt.date.today())},
set(),
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test for checking headers with newline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants