You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2023/01/09 09:01:38 UTC

[GitHub] [incubator-seatunnel] TyrantLucifer opened a new pull request, #3900: [Feature][Connector-V2][File] Support skip number when reading text json csv files

TyrantLucifer opened a new pull request, #3900:
URL: https://github.com/apache/incubator-seatunnel/pull/3900

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   close #3276 #3192 
   
   Because I have no permit to push his branch, so I open another pull request.
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [ ] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update change log that in connector document. For more details you can refer to [connector-v2](https://github.com/apache/incubator-seatunnel/tree/dev/docs/en/connector-v2)
     2. Update [plugin-mapping.properties](https://github.com/apache/incubator-seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     3. Update the pom file of [seatunnel-dist](https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-dist/pom.xml)
   * [ ] Update the [`release-note`](https://github.com/apache/incubator-seatunnel/blob/dev/release-note.md).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] TyrantLucifer commented on pull request #3900: [Feature][Connector-V2][File] Support skip number when reading text csv files

Posted by GitBox <gi...@apache.org>.
TyrantLucifer commented on PR #3900:
URL: https://github.com/apache/incubator-seatunnel/pull/3900#issuecomment-1378691193

   > LGTM, could you add a test case?
   
   Yup, it's in progress.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] Hisoka-X merged pull request #3900: [Feature][Connector-V2][File] Support skip number when reading text csv files

Posted by GitBox <gi...@apache.org>.
Hisoka-X merged PR #3900:
URL: https://github.com/apache/incubator-seatunnel/pull/3900


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] TaoZex commented on a diff in pull request #3900: [Feature][Connector-V2][File] Support skip number when reading text json csv files

Posted by GitBox <gi...@apache.org>.
TaoZex commented on code in PR #3900:
URL: https://github.com/apache/incubator-seatunnel/pull/3900#discussion_r1064408209


##########
docs/en/connector-v2/source/SftpFile.md:
##########
@@ -29,21 +29,22 @@ If you use SeaTunnel Engine, It automatically integrated the hadoop jar when you
 
 ## Options
 
-| name                        | type    | required | default value       |
-|-----------------------------|---------|----------|---------------------|
-| host                        | string  | yes      | -                   |
-| port                        | int     | yes      | -                   |
-| user                        | string  | yes      | -                   |
-| password                    | string  | yes      | -                   |
-| path                        | string  | yes      | -                   |
-| type                        | string  | yes      | -                   |
-| delimiter                   | string  | no       | \001                |
-| parse_partition_from_path   | boolean | no       | true                |
-| date_format                 | string  | no       | yyyy-MM-dd          |
-| datetime_format             | string  | no       | yyyy-MM-dd HH:mm:ss |
-| time_format                 | string  | no       | HH:mm:ss            |
-| schema                      | config  | no       | -                   |
-| common-options              |         | no       | -                   |
+| name                      | type    | required | default value       |
+|---------------------------|---------|----------|---------------------|
+| host                      | string  | yes      | -                   |
+| port                      | int     | yes      | -                   |
+| user                      | string  | yes      | -                   |
+| password                  | string  | yes      | -                   |
+| path                      | string  | yes      | -                   |
+| type                      | string  | yes      | -                   |
+| delimiter                 | string  | no       | \001                |
+| parse_partition_from_path | boolean | no       | true                |
+| date_format               | string  | no       | yyyy-MM-dd          |
+| skip_header_row_number    | long    | no       | 1                   |

Review Comment:
   Same as above.



##########
docs/en/connector-v2/source/LocalFile.md:
##########
@@ -34,17 +34,18 @@ Read all the data in a split in a pollNext call. What splits are read will be sa
 
 ## Options
 
-| name                       | type      | required | default value       |
-|----------------------------|-----------|----------|---------------------|
-| path                       | string    | yes      | -                   |
-| type                       | string    | yes      | -                   |
-| delimiter                  | string    | no       | \001                |
-| parse_partition_from_path  | boolean   | no       | true                |
-| date_format                | string    | no       | yyyy-MM-dd          |
-| datetime_format            | string    | no       | yyyy-MM-dd HH:mm:ss |
-| time_format                | string    | no       | HH:mm:ss            |
-| schema                     | config    | no       | -                   |
-| common-options             |           | no       | -                   |
+| name                      | type    | required | default value       |
+|---------------------------|---------|----------|---------------------|
+| path                      | string  | yes      | -                   |
+| type                      | string  | yes      | -                   |
+| delimiter                 | string  | no       | \001                |
+| parse_partition_from_path | boolean | no       | true                |
+| date_format               | string  | no       | yyyy-MM-dd          |
+| datetime_format           | string  | no       | yyyy-MM-dd HH:mm:ss |
+| time_format               | string  | no       | HH:mm:ss            |
+| skip_header_row_number    | long    | no       | 1                   |

Review Comment:
   Same as above.



##########
docs/en/connector-v2/source/FtpFile.md:
##########
@@ -29,21 +29,22 @@ If you use SeaTunnel Engine, It automatically integrated the hadoop jar when you
 
 ## Options
 
-| name                       | type    | required | default value       |
-|----------------------------|---------|----------|---------------------|
-| host                       | string  | yes      | -                   |
-| port                       | int     | yes      | -                   |
-| user                       | string  | yes      | -                   |
-| password                   | string  | yes      | -                   |
-| path                       | string  | yes      | -                   |
-| type                       | string  | yes      | -                   |
-| delimiter                  | string  | no       | \001                |
-| parse_partition_from_path  | boolean | no       | true                |
-| date_format                | string  | no       | yyyy-MM-dd          |
-| datetime_format            | string  | no       | yyyy-MM-dd HH:mm:ss |
-| time_format                | string  | no       | HH:mm:ss            |
-| schema                     | config  | no       | -                   |
-| common-options             |         | no       | -                   |
+| name                      | type    | required | default value       |
+|---------------------------|---------|----------|---------------------|
+| host                      | string  | yes      | -                   |
+| port                      | int     | yes      | -                   |
+| user                      | string  | yes      | -                   |
+| password                  | string  | yes      | -                   |
+| path                      | string  | yes      | -                   |
+| type                      | string  | yes      | -                   |
+| delimiter                 | string  | no       | \001                |
+| parse_partition_from_path | boolean | no       | true                |
+| date_format               | string  | no       | yyyy-MM-dd          |
+| datetime_format           | string  | no       | yyyy-MM-dd HH:mm:ss |
+| time_format               | string  | no       | HH:mm:ss            |
+| skip_header_row_number    | long    | no       | 1                   |

Review Comment:
   ```suggestion
   | skip_header_row_number    | long    | no       | 0                   |
   ```



##########
docs/en/connector-v2/source/OssFile.md:
##########
@@ -47,6 +47,7 @@ Read all the data in a split in a pollNext call. What splits are read will be sa
 | endpoint                  | string  | yes      | -                   |
 | delimiter                 | string  | no       | \001                |
 | parse_partition_from_path | boolean | no       | true                |
+| skip_header_row_number    | long    | no       | 1                   |

Review Comment:
   Same as above.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org