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
2 changes: 1 addition & 1 deletion libs/io/garf/io/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = '1.5.2'
__version__ = '1.5.3'
3 changes: 2 additions & 1 deletion libs/io/garf/io/writers/clickhouse_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(
)

@tracer.start_as_current_span('clickhouse.write')
def write(self, report: garf_report.GarfReport, destination: str) -> None:
def write(self, report: garf_report.GarfReport, destination: str) -> str:
"""Writes Garf report to the table.

Args:
Expand Down Expand Up @@ -157,6 +157,7 @@ def write(self, report: garf_report.GarfReport, destination: str) -> None:
database=database,
)
logger.debug('Writing to %s.%s is completed', database, table)
return f'[Clickhouse] - at {database}.{table}'

def _split_destination(self, destination: str) -> tuple[str, str]:
parts = destination.split('.')
Expand Down
5 changes: 2 additions & 3 deletions libs/io/garf/io/writers/sheets_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ def write(
self._add_rows_if_needed(num_data_rows, sheet)
sheet.append_rows(report.results, value_input_option='RAW')

success_msg = f'Report is saved to {sheet.url}'
logger.info(success_msg)
return success_msg
logger.info('Report is saved to %s', sheet.url)
return f'[Sheets] at {sheet.url}'

@property
@tracer.start_as_current_span('sheets.create_client')
Expand Down
1 change: 1 addition & 0 deletions libs/io/garf/io/writers/sqldb_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def write(self, report: garf_report.GarfReport, destination: str) -> None:
write_params.update({'dtype': dtypes})
df.to_sql(**write_params)
logger.debug('Writing to %s is completed', destination)
return f'[SQL] - at {destination}'

@property
def engine(self) -> sqlalchemy.engine.Engine:
Expand Down
Loading