Skip to content
Snippets Groups Projects
Verified Commit ccf144d7 authored by Martin Weise's avatar Martin Weise
Browse files

Hotfix

parent 3e3dad6e
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,7 @@ export default {
true_element: null,
null_element: '',
separator: ',',
line_termination: '\\r\\n',
line_termination: '\\n',
skip_lines: 1
},
separators: [
......
......@@ -28,7 +28,7 @@ stringData:
DEFAULT_TIME_FORMAT_ID: "{{ .Values.dataservice.default.time }}"
DEFAULT_TIMESTAMP_FORMAT_ID: "{{ .Values.dataservice.default.timestamp }}"
JWT_PUBKEY: "{{ .Values.authservice.jwt.pubkey }}"
LOG_LEVEL: "{{ ternary "debug" "info" .Values.dataservice.image.debug }}"
LOG_LEVEL: "{{ ternary "trace" "info" .Values.dataservice.image.debug }}"
METADATA_SERVICE_ENDPOINT: "{{ .Values.metadataservice.endpoint }}"
MIN_CONCURRENT_CONSUMERS: "{{ .Values.dataservice.rabbitmq.consumerConcurrentMin }}"
MAX_CONCURRENT_CONSUMERS: "{{ .Values.dataservice.rabbitmq.consumerConcurrentMax }}"
......
......@@ -1102,17 +1102,17 @@ class RestClient:
raise ResponseCodeError(f'Failed to insert table data: response code: {response.status_code} is not '
f'201 (CREATED): {response.text}')
def import_table_data(self, database_id: int, table_id: int, separator: str,
file_name_or_data_frame: str | DataFrame, quote: str = None, skip_lines: int = 0,
def import_table_data(self, database_id: int, table_id: int, file_name_or_data_frame: str | DataFrame,
separator: str = None, quote: str = None, skip_lines: int = 0,
false_encoding: str = None, true_encoding: str = None, null_encoding: str = None,
line_encoding: str = "\r\n") -> None:
line_encoding: str = "\n") -> None:
"""
Import a csv dataset from a file into a table in a database with given database id and table id.
:param database_id: The database id.
:param table_id: The table id.
:param separator: The csv column separator.
:param file_name_or_data_frame: The path of the file that is imported on the storage service or pandas dataframe.
:param separator: The csv column separator. Optional.
:param quote: The column data quotation character. Optional.
:param skip_lines: The number of lines to skip. Optional. Default: 0.
:param false_encoding: The encoding of boolean false. Optional.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment