You can translate the question and the replies:

Skiiping first 3 rows in csv datasources

Hi How to create a datasource for a csv delimiter which i need to skip first 3 rows of the file? the first 3 lines has description about the data and it has only one column and starting from 4th line it has 10 columns.
04-11-2021 22:17:39 -0400

1 Answer

Hi, In order to create a data source for a CSV file which would retrieve the data by skipping the first 3 rows of the file, I would make use of the **Start of data zone delimiter** option. Ideally this will identify the position in the file where the data source has to start retrieving the data. For instance, I would perform the following steps to skip the first 3 rows of the file. In my scenario, I have a sample CSV file with 3 rows of description and the actual data starts from the 4th row which is comma-separated: * Create a Delimited file data source and specify the delimiter in the column delimiter section. * In the Start of data zone delimiter, I would specify the below Java regular expression which would retrieve data from the 4th row. `(.*\n)(.*\n)(.*\n) ` * Note that this expression is based on the sample file I used, you can modify the values according to your CSV file/requirements. You could take a look at the [Delimited File Sources ]( of the Virtual DataPort Administration Guide for more details on the configuration options available for this data source. Hope this helps!
Denodo Team
05-11-2021 03:20:18 -0400
You must sign in to add an answer. If you do not have an account, you can register here