Hello, is there a way to rename my output of CSV i...
# troubleshooting
r
Hello, is there a way to rename my output of CSV instead of
{stream_name}-tableName
to have just tableName ? I've read the documentation about
File Naming Scheme (file_naming_scheme)
in target-csv but im not sure if i can somehow delete the
{stream_name}
. Thank you so much
2
r
The tap will be responsible for appending the table name to form the stream name (I assume the format is something like
{schema_name}-{table_name}
?). In theory, you can modify the output CSV file names using stream_maps and __alias__
Copy code
config:
        stream_maps:
          '*':
            __alias__: '__stream_name__.split("-")[1]'
, although you might want to consider the implications of having multiple streams of names that reference the same table map to a single CSV file.
r
thank you it worked like charm ☺️ I dont have multple streams that reference the same table so its fine for me, thank you so much ☺️
np 1