-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update FixAvroCoder to match transformed Avro SCollections (#5351)
- Loading branch information
1 parent
8ff8bba
commit da05566
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder16.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
rule = FixAvroCoder | ||
*/ | ||
package fix.v0_14_0 | ||
|
||
import com.spotify.scio.values.SCollection | ||
|
||
object FixAvroCoder16 { | ||
|
||
def someMethod(data: SCollection[A]): SCollection[(String, A)] = { | ||
data.map(r => ("foo", r)) | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder16.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package fix.v0_14_0 | ||
|
||
import com.spotify.scio.values.SCollection | ||
import com.spotify.scio.avro._ | ||
|
||
object FixAvroCoder16 { | ||
|
||
def someMethod(data: SCollection[A]): SCollection[(String, A)] = { | ||
data.map(r => ("foo", r)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters