Skip to content

Conversation

@xwm1992
Copy link
Contributor

@xwm1992 xwm1992 commented Sep 21, 2023

Fixes #4454 .

Motivation

Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.

Modifications

Describe the modifications you've done.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #4455 (62b9ee5) into master (b83663c) will decrease coverage by 1.01%.
Report is 6 commits behind head on master.
The diff coverage is 0.58%.

❗ Current head 62b9ee5 differs from pull request most recent head bafdfcb. Consider uploading reports for the commit bafdfcb to get more accurate results

@@             Coverage Diff              @@
##             master    #4455      +/-   ##
============================================
- Coverage     16.95%   15.94%   -1.01%     
- Complexity     1458     1476      +18     
============================================
  Files           619      689      +70     
  Lines         25740    27525    +1785     
  Branches       2414     2568     +154     
============================================
+ Hits           4365     4390      +25     
- Misses        20936    22686    +1750     
- Partials        439      449      +10     
Files Changed Coverage Δ
...he/eventmesh/connector/jdbc/AbstractPartition.java 0.00% <0.00%> (ø)
...pache/eventmesh/connector/jdbc/CatalogChanges.java 0.00% <ø> (ø)
...ava/org/apache/eventmesh/connector/jdbc/Field.java 0.00% <0.00%> (ø)
...esh/connector/jdbc/PartitionOffSetContextPair.java 0.00% <0.00%> (ø)
...a/org/apache/eventmesh/connector/jdbc/Payload.java 0.00% <0.00%> (ø)
...va/org/apache/eventmesh/connector/jdbc/Schema.java 0.00% <0.00%> (ø)
...eventmesh/connector/jdbc/UniversalJdbcContext.java 0.00% <0.00%> (ø)
...entmesh/connector/jdbc/UniversalOffsetContext.java 0.00% <0.00%> (ø)
...entmesh/connector/jdbc/antlr4/Antlr4DdlParser.java 0.00% <0.00%> (ø)
...tor/jdbc/connection/mysql/MysqlJdbcConnection.java 0.00% <0.00%> (ø)
... and 79 more

... and 8 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment on lines 86 to 96
@Override
public void start() throws Exception {
if (fileName == null || fileName.length() == 0 || filePath == null || filePath.length() == 0) {
this.outputStream = System.out;
} else {
this.outputStream =
new PrintStream(Files.newOutputStream(Paths.get(filePath + fileName), StandardOpenOption.CREATE, StandardOpenOption.APPEND),
false,
StandardCharsets.UTF_8.name());
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to have a extra line break between L93 and L94?

@qqeasonchen qqeasonchen merged commit df07986 into apache:master Sep 22, 2023
@pandaapo pandaapo added this to the 1.10 milestone Dec 5, 2023
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
* [ISSUE apache#4454] Support File Sink Connector

* Update FileSinkConnector.java

* update openWithNewFile method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support File Sink Connector

4 participants