-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get files from SFTP server using pattern of files #353
Comments
Regex are not currently accepted, but glob is. Can you try |
It does not work,
|
here are some more similar error lines
|
Should be good now with 5f9d3a5
|
This works when only pattern is available, like ???.csv will give asc.csv with you we suffix or prefix it with a string it does not work, for e.g. "abc_???.csv" will not return abc_def.csv it fails saying no file found. |
OK, applied ffe5a02 https://f.slingdata.io/dev/latest/sling_linux_amd64.tar.gz |
I am using Version v1.2.16.dev Replication not working
looks like its skipping after _ |
can you share your replication? |
|
can you try again with latest build? |
same error as before, when tried with the dev build
|
Version should be: Also, remove source: MY_SFTP
target: SNOWFLAKE
defaults:
mode: truncate
streams:
"myfolder/SITE_????-??-??.csv":
object: 'myschema.site'
single: false
env:
SAMPLE_SIZE: 2000 # increase the sample size to infer types (default=900).
SLING_STREAM_URL_COLUMN: true # adds a _sling_stream_url column with file path
SLING_LOADED_AT_COLUMN: timestamp |
This works, I am able to get files now. |
Feature Description
SFTP connector with pattern search using regex.
What would you like to see added to Sling?
Current sftp connector works absolutely perfect for one file i.e. abc.csv or multiple files abc_def.csv or abcdef.csv.
however it does not seem to take the pattern like ^abc_\d{4}-\d{2}-\d{2}.csv$
Is there a way of solving this in sling ?
The text was updated successfully, but these errors were encountered: