From f5dc8703bfcf2aa47f0a4c1a40dce1a3813a002e Mon Sep 17 00:00:00 2001 From: harsh <66548698+harsssh@users.noreply.github.com> Date: Sat, 20 Jul 2024 01:28:14 +0900 Subject: [PATCH] Fix bug where `slp` output setting were overridden by command-line option --- internal/extproc/slp/processor.go | 2 +- internal/extproc/slp/slp.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/extproc/slp/processor.go b/internal/extproc/slp/processor.go index d00c1ba..a4154ad 100644 --- a/internal/extproc/slp/processor.go +++ b/internal/extproc/slp/processor.go @@ -25,7 +25,7 @@ func (p *processor) Process(snapshot *collect.Snapshot) (io.ReadCloser, error) { return nil, fmt.Errorf("failed to find snapshot body: %w", err) } - cmd := exec.Command("slp", "my", "--config", p.confPath, "--output", "standard", "--format", "tsv", "--file", bodyPath) + cmd := exec.Command("slp", "my", "--config", p.confPath, "--format", "tsv", "--file", bodyPath) res, err := cmd.Output() if err != nil { diff --git a/internal/extproc/slp/slp.yml b/internal/extproc/slp/slp.yml index 5aba2a4..393b782 100644 --- a/internal/extproc/slp/slp.yml +++ b/internal/extproc/slp/slp.yml @@ -2,3 +2,4 @@ bundle_values: true bundle_where_in: true filters: Query matches "^(SELECT|INSERT|UPDATE|REPLACE) " limit: 65536 +output: standard