avro.git
8 weeks agoAVRO-3510: Use installer.sig file avro-3510-read-composer-installer-sha384-on-the-fly 1678/head
Martin Tzvetanov Grigorov [Tue, 3 May 2022 18:44:37 +0000 (21:44 +0300)] 
AVRO-3510: Use installer.sig file

installer.sha384sum has additional content

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
8 weeks agoAVRO-3510: Do not hardcode the PHP Composer installer Sha384 in TravisCI
Martin Tzvetanov Grigorov [Tue, 3 May 2022 18:38:07 +0000 (21:38 +0300)] 
AVRO-3510: Do not hardcode the PHP Composer installer Sha384 in TravisCI

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
8 weeks agoRemove trailing ^M to make Git happy
Martin Tzvetanov Grigorov [Tue, 3 May 2022 09:18:56 +0000 (12:18 +0300)] 
Remove trailing ^M to make Git happy

Related to: https://github.com/apache/avro/commit/72e1135f7c1171b7f028f7f4f5fa0a652eb4edc2

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
8 weeks agoUpdated the checksum for PHP composer download (#1677)
Thiruvalluvan M G [Mon, 2 May 2022 04:33:54 +0000 (21:33 -0700)] 
Updated the checksum for PHP composer download (#1677)

2 months agoAVRO-2870: Avoid throwing from destructor in DataFileWriterBase (#921)
Andrew Onyshchuk [Sat, 30 Apr 2022 00:54:36 +0000 (17:54 -0700)] 
AVRO-2870: Avoid throwing from destructor in DataFileWriterBase (#921)

Co-authored-by: Thiruvalluvan M G <thiru@apache.org>
2 months agoAVRO-3482: Reuse MAGIC in DataFileReader (#1639)
rbalamohan [Wed, 27 Apr 2022 14:32:19 +0000 (20:02 +0530)] 
AVRO-3482: Reuse MAGIC in DataFileReader (#1639)

DataFileReader reads magic information twice. seek(0) is invoked
twice due to this. In cloud object stores, seeking back to 0 will
cause it to fall back to "random IO policy". Example of this is
S3A connector for s3. This causes suboptimal reads in object stores.
Refactoring in the patch addresses this case by reusing MAGIC.

2 months agoAVRO-3427: skip creation of namespace directories for csharp schema (#1578)
kordos [Mon, 25 Apr 2022 18:36:51 +0000 (20:36 +0200)] 
AVRO-3427: skip creation of namespace directories for csharp schema (#1578)

* Add new argument parameter --skip-directories. It will skip creation of directories for namespace. Just generate classes in output directory

* Add missing doc param description

* Fix Unit tests after merge with master

* Fix Unit tests after merge with master

* C# Add unit tests for --skip-directories option

Co-authored-by: Pawel Kordowski <pawel.kordowski@stepstone.com>
2 months agoAVRO-3484: Followup Check default json parsing at compile time for derive macro ...
Jack Klamer [Mon, 25 Apr 2022 18:05:37 +0000 (13:05 -0500)] 
AVRO-3484: Followup Check default json parsing at compile time for derive macro  (#1668)

* check json parsing at compile time

* fmt

2 months agoBump underscore from 1.13.2 to 1.13.3 in /lang/js (#1669)
dependabot[bot] [Mon, 25 Apr 2022 18:00:48 +0000 (21:00 +0300)] 
Bump underscore from 1.13.2 to 1.13.3 in /lang/js (#1669)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.13.2 to 1.13.3.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.13.2...1.13.3)

---
updated-dependencies:
- dependency-name: underscore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoBump grpc.version from 1.45.0 to 1.45.1 in /lang/java (#1671)
dependabot[bot] [Mon, 25 Apr 2022 17:59:59 +0000 (20:59 +0300)] 
Bump grpc.version from 1.45.0 to 1.45.1 in /lang/java (#1671)

Bumps `grpc.version` from 1.45.0 to 1.45.1.

Updates `grpc-core` from 1.45.0 to 1.45.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.45.0...v1.45.1)

Updates `grpc-stub` from 1.45.0 to 1.45.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.45.0...v1.45.1)

Updates `grpc-netty` from 1.45.0 to 1.45.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.45.0...v1.45.1)

---
updated-dependencies:
- dependency-name: io.grpc:grpc-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.grpc:grpc-stub
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.grpc:grpc-netty
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoAVRO-3490 Updated to use throw expressions (#1644)
Kyle Schoonover [Thu, 21 Apr 2022 18:19:00 +0000 (11:19 -0700)] 
AVRO-3490 Updated to use throw expressions (#1644)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3490 Updated to use throw expressions

* Additional expressions

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3498 Deprecate NameCtorKey (#1657)
Kyle Schoonover [Thu, 21 Apr 2022 18:17:27 +0000 (11:17 -0700)] 
AVRO-3498 Deprecate NameCtorKey (#1657)

2 months agoBump libthrift from 0.15.0 to 0.16.0 in /lang/java (#1665)
dependabot[bot] [Thu, 21 Apr 2022 18:15:51 +0000 (21:15 +0300)] 
Bump libthrift from 0.15.0 to 0.16.0 in /lang/java (#1665)

Bumps [libthrift](https://github.com/apache/thrift) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/apache/thrift/releases)
- [Changelog](https://github.com/apache/thrift/blob/master/CHANGES.md)
- [Commits](https://github.com/apache/thrift/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: org.apache.thrift:libthrift
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoBump zstd-jni from 1.5.1-1 to 1.5.2-2 in /lang/java (#1663)
dependabot[bot] [Thu, 21 Apr 2022 18:15:22 +0000 (21:15 +0300)] 
Bump zstd-jni from 1.5.1-1 to 1.5.2-2 in /lang/java (#1663)

Bumps [zstd-jni](https://github.com/luben/zstd-jni) from 1.5.1-1 to 1.5.2-2.
- [Release notes](https://github.com/luben/zstd-jni/releases)
- [Commits](https://github.com/luben/zstd-jni/compare/v1.5.1-1...v1.5.2-2)

---
updated-dependencies:
- dependency-name: com.github.luben:zstd-jni
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoBump jmh.version from 1.34 to 1.35 in /lang/java (#1662)
dependabot[bot] [Thu, 21 Apr 2022 18:14:51 +0000 (21:14 +0300)] 
Bump jmh.version from 1.34 to 1.35 in /lang/java (#1662)

Bumps `jmh.version` from 1.34 to 1.35.

Updates `jmh-core` from 1.34 to 1.35

Updates `jmh-generator-annprocess` from 1.34 to 1.35

---
updated-dependencies:
- dependency-name: org.openjdk.jmh:jmh-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.openjdk.jmh:jmh-generator-annprocess
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoUpdate uuid requirement from 0.8.2 to 1.0.0 in /lang/rust (#1660)
dependabot[bot] [Thu, 21 Apr 2022 18:13:27 +0000 (21:13 +0300)] 
Update uuid requirement from 0.8.2 to 1.0.0 in /lang/rust (#1660)

* Update uuid requirement from 0.8.2 to 1.0.0 in /lang/rust

Updates the requirements on [uuid](https://github.com/uuid-rs/uuid) to permit the latest version.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/0.8.2...1.0.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
* Issue #1660 - Fix compilation errors after updating uuid crate from 0.8 to 1.0

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAvro 3502 logical type wrong order (#1664)
Martin Grigorov [Thu, 21 Apr 2022 18:12:17 +0000 (21:12 +0300)] 
Avro 3502 logical type wrong order (#1664)

* AVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3502: Rust: Wrong [ORDER] for Parsing Canonical Form

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds (#1661)
Martin Grigorov [Thu, 21 Apr 2022 13:10:14 +0000 (16:10 +0300)] 
AVRO-3501: Rust: Cache ~/.cargo and target folder for faster builds (#1661)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoConfigure Dependabot to check for Rust updates daily
Martin Tzvetanov Grigorov [Thu, 21 Apr 2022 11:42:13 +0000 (14:42 +0300)] 
Configure Dependabot to check for Rust updates daily

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3500: Use property-based testing for the IT tests in avro_derive module (#1659)
Martin Grigorov [Wed, 20 Apr 2022 19:58:41 +0000 (22:58 +0300)] 
AVRO-3500: Use property-based testing for the IT tests in avro_derive module (#1659)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3497 Simplify conditional expression (#1658)
Kyle Schoonover [Wed, 20 Apr 2022 19:57:04 +0000 (12:57 -0700)] 
AVRO-3497 Simplify conditional expression (#1658)

* AVRO-3497 Simplify conditional expression

* Added null check back

* Updated tests

2 months agoAVRO-3484: Add support for deriving a default value for a record field (#1651)
Martin Grigorov [Wed, 20 Apr 2022 18:07:35 +0000 (21:07 +0300)] 
AVRO-3484: Add support for deriving a default value for a record field (#1651)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3465: Add avrogen protocol tests (#1616)
Zoltan Csizmadia [Wed, 20 Apr 2022 07:46:50 +0000 (02:46 -0500)] 
AVRO-3465: Add avrogen protocol tests (#1616)

* Add avrogen protocol tests

* Add protocol test case

* Fix merge conflicts

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
2 months agoAVRO-3477: Add unit tests for logical types with fixed base type (#1629)
Zoltan Csizmadia [Tue, 19 Apr 2022 20:32:18 +0000 (15:32 -0500)] 
AVRO-3477: Add unit tests for logical types with fixed base type (#1629)

* Support fixed base type for logical types

* Tweak

* Revert

* Fix fixed type definition

* Add AvroGen tests

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
2 months agoAVRO-3496: Rust: Use visitor.visit_borrowed_str() when possible (#1652)
Martin Grigorov [Tue, 19 Apr 2022 19:20:05 +0000 (22:20 +0300)] 
AVRO-3496: Rust: Use visitor.visit_borrowed_str() when possible (#1652)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3491 Avoid a cast after is check (#1645)
Kyle Schoonover [Tue, 19 Apr 2022 18:40:48 +0000 (11:40 -0700)] 
AVRO-3491 Avoid a cast after is check (#1645)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3491 Avoid a cast after is check

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoBump slf4j.version from 1.7.33 to 1.7.36 in /lang/java (#1646)
dependabot[bot] [Tue, 19 Apr 2022 18:39:00 +0000 (21:39 +0300)] 
Bump slf4j.version from 1.7.33 to 1.7.36 in /lang/java (#1646)

Bumps `slf4j.version` from 1.7.33 to 1.7.36.

Updates `slf4j-api` from 1.7.33 to 1.7.36
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.33...v_1.7.36)

Updates `slf4j-simple` from 1.7.33 to 1.7.36
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.33...v_1.7.36)

Updates `slf4j-log4j12` from 1.7.33 to 1.7.36
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.33...v_1.7.36)

---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-simple
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: org.slf4j:slf4j-log4j12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoAVRO-3495: Rust: Fields order should not matter (#1650)
Martin Grigorov [Tue, 19 Apr 2022 18:37:45 +0000 (21:37 +0300)] 
AVRO-3495: Rust: Fields order should not matter (#1650)

* AVRO-3495: The order of the struct's fields and schema's fields should not matter

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3495: Use the lookup table when comparing values against fields by name

Until now it was expected that both the schema fields and the input
values are sorted the same way.

Use BTreeMap instead of HashMap for the lookup table because otherwise
the assertion on the validation error messages is impossible due to
random printing of the map's entries

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3495: Update the test case

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3841: Try exact schema match first in union type (#1635)
Zoltan Csizmadia [Tue, 19 Apr 2022 18:28:33 +0000 (13:28 -0500)] 
AVRO-3841: Try exact schema match first in union type (#1635)

* Try exact schema match

* Fix formatting

* Add tests for exception

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
2 months agoAVRO-2211: SchemaBuilder equivalent or other means of schema creation (#1597)
yanivru [Tue, 19 Apr 2022 18:27:30 +0000 (21:27 +0300)] 
AVRO-2211: SchemaBuilder equivalent or other means of schema creation (#1597)

* AVRO-2211: Support schema creation

* Add license info to new files

* Fix documentation for FixedSchema ctor

* Remove and sort using

* Add missing brackets and replace var with explicit type

* Fix exception type in case of parsing

* Rename field to follow conventions

* AVRO 2211: Inlining temporary variable in linq

* AVRO-2211: Change exception type and add missing documentations

* AVRO-2211: Fix RecordSchema to set the positions of it's fields, instead of verifying it

* AVRO-2211: Fix RecordSchema fields assignment when creation new RecordSchema

* AVRO-2211: Change constructors of schema classes to factory method

* AVRO-2211: Add unit tests for RecordSchema and EnumSchema

* :AVRO-2211: Remove whitespace

* :AVRO-2211: Add symbol names verification for EnumSchema

* AVRO-2211: Fix enum name validation

* AVRO-2211: Throw AvroException consistently

* AVRO-2211: Throw AvroException in RecrodSchema consistently

* AVRO-2211: Remove duplicate factory methods on MapSchema

* AVRO-2211: Remove redundant parameter doc

* AVRO-2211: Add Schema creation tests

* AVRO-2211: Change ValidateSymbol to throw exception

* AVRO-2211: Fix typo

* AVRO-2211: Fix code QL issues

* AVRO-2211: Fix typo

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
2 months agoAVRO-2883: Fix namespace mapping (#1610)
Zoltan Csizmadia [Tue, 19 Apr 2022 18:24:05 +0000 (13:24 -0500)] 
AVRO-2883: Fix namespace mapping (#1610)

* Remove unused package references

* Replace namespace in text schema

* Remove namespace mapping

* Add unit tests

* Match namespace mapping used in ticket

* Make ReplaceMappedNamespacesInSchema private

* Mark NamespaceMapping obsolete

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
2 months agoAVRO-3458: Added tests for GenericRecord (#1606)
Kyle Schoonover [Tue, 19 Apr 2022 18:23:05 +0000 (11:23 -0700)] 
AVRO-3458: Added tests for GenericRecord (#1606)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3458 Added tests for GenericRecord

* Moved Schema to const

* using discard

* Empty

* Add license

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3003: Fully qualify enum default value in C# code gen (#1596)
Jose Massada [Tue, 19 Apr 2022 18:20:03 +0000 (19:20 +0100)] 
AVRO-3003: Fully qualify enum default value in C# code gen (#1596)

2 months agoAVRO-3424: Added support to parse string into Schema.Type (#1571)
Kyle Schoonover [Tue, 19 Apr 2022 18:19:01 +0000 (11:19 -0700)] 
AVRO-3424: Added support to parse string into Schema.Type (#1571)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3424 Created extension method for converting string into a Schema.Type enumeration

* Updated functionality

* Removed breaking code

* Updated remove quotes

* Removed if from tests

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3384: Define C# Coding Style Guidelines (#1534)
Kyle Schoonover [Tue, 19 Apr 2022 18:17:46 +0000 (11:17 -0700)] 
AVRO-3384: Define C# Coding Style Guidelines (#1534)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3384 Initial check in

* Formatting fix

* Additional formatting

* More formatting

* Added additional rule

* Completed new line rules

* Indentation preferences complete

* Updated header

* Additional formatting

* More formatting changes

* Added spacing options

* Updated wrap options

* Additional documentation for styling

* Updated notes

* Updated more

* Added var preferences and Expression-bodied member preferences

* Initial styling rules documented

* Updated naming rules to reflect Roslyn naming rules

* Added other styling rule callouts.

* Updated Readme

* Updated rule

* Add header template

* Microsoft has a bug for semicolon which makes this not work.

* Added license

* Added note about IDE0055

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3415: Add code coverage report support for csharp (#1565)
Kyle Schoonover [Tue, 19 Apr 2022 07:30:09 +0000 (00:30 -0700)] 
AVRO-3415: Add code coverage report support for csharp (#1565)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3415 Add code coverage report support for csharp

* Ignore Updates and package references

* Updated names

* Sorted packages alphabetically

* Mode ReportGenerator instructions for global.

* Update versions.props

* Remove path

* Updated tabbing

* Cleanup version.props

* Add missing settings from version.props

* Updated from tabs to 2 space indents

* Added command in code block

* Fix carriage return

* force carriage return

* Another carriage return

* Added longer path to report

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3492: Add logic to derive the aliases for Schema::Enum (#1649)
Martin Grigorov [Mon, 18 Apr 2022 21:06:13 +0000 (00:06 +0300)] 
AVRO-3492: Add logic to derive the aliases for Schema::Enum (#1649)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3494: Uncomment a test for recursive types (#1648)
Martin Grigorov [Mon, 18 Apr 2022 19:43:57 +0000 (22:43 +0300)] 
AVRO-3494: Uncomment a test for recursive types (#1648)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3494: Rust: uncomment some tests which actually pass
Martin Tzvetanov Grigorov [Mon, 18 Apr 2022 18:59:21 +0000 (21:59 +0300)] 
AVRO-3494: Rust: uncomment some tests which actually pass

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3492: Add support for deriving Schema::Record aliases (#1647)
Martin Grigorov [Mon, 18 Apr 2022 05:37:16 +0000 (08:37 +0300)] 
AVRO-3492: Add support for deriving Schema::Record aliases (#1647)

* AVRO-3492: Add support for deriving Schema::Record aliases

Uses Darling's 'multiple' attribute feature.

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3492: Add a test case with multiple attributes with different values for 'alias' key

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3479: [rust] Avro Schema Derive Proc Macro (#1631)
Jack Klamer [Sat, 16 Apr 2022 20:52:15 +0000 (15:52 -0500)] 
AVRO-3479: [rust] Avro Schema Derive Proc Macro (#1631)

* port crate

* namespace port

* dev depends

* resolved against main

* Cons list tests

* rebased onto master resolution

* namespace attribute in derive

* std pointers

* References, testing, and refactoring

* [AVRO-3479] Clean up for PR

* AVRO-3479: Add missing ASL2 headers

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Minor improvements

Add TODOs

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Schema assertions and PR comments

* test failure fixing

* add readme

* README + implementation guide + bug fix with enclosing namespaces

* AVRO-3479: Minor improvements

Fix typos.
Format the code/doc.
Apply suggestions by the IDE to use assert_eq!() instead of assert!()

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Fix typos

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Use darling crate to parse derive attributes

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* darling for NamedTypes and fields

* AVRO-3479 pr review naming

* AVRO-3479 doc comment doc and small tests

* AVRO-3479 featurize

* AVRO-3479 cargo engineering

* Fix a docu warning:

warning: unresolved link to `AvroSchemaComponent`
    --> avro/src/schema.rs:1524:70
     |
1524 | /// through `derive` feature. Do not implement directly, implement [`AvroSchemaComponent`]
     |                                                                      ^^^^^^^^^^^^^^^^^^^ no item named `AvroSchemaComponent` in scope
     |
     = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: `apache-avro` (lib doc) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 10.13s

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Rename avro_derive to apache-avro-derive

For consistency.
Add Cargo.toml metadata

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Use fqn for Mutex

For some reason Rustdoc build sometimes (not always!) complain that the
import of std::sync::Mutex is not used ...

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Update darling to 0.14.0

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Fix the version of apache-avro-derive

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Minor cleanups

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Inline a pub function that is used only in avro_derive

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Derive Schema::Long for u32

Validate successfully Value::Int into Schema::Long

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3479: Bump dependencies to their latest versions

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
2 months agoAVRO-3488 Fix spelling mistakes (#1642)
Kyle Schoonover [Thu, 14 Apr 2022 06:52:41 +0000 (23:52 -0700)] 
AVRO-3488 Fix spelling mistakes (#1642)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* Fix spelling mistakes

* Fix spelling change

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3489: [JavaScript] Replace istanbul with nyc for code coverage (#1643)
Martin Grigorov [Wed, 13 Apr 2022 21:13:46 +0000 (00:13 +0300)] 
AVRO-3489: [JavaScript] Replace istanbul with nyc for code coverage (#1643)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoBump minimist from 1.2.5 to 1.2.6 in /lang/js (#1641)
dependabot[bot] [Wed, 13 Apr 2022 20:54:18 +0000 (23:54 +0300)] 
Bump minimist from 1.2.5 to 1.2.6 in /lang/js (#1641)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months agoAVRO-3487: Update Jackson to 2.12.6.1 (#1640)
Martin Grigorov [Wed, 13 Apr 2022 20:21:21 +0000 (23:21 +0300)] 
AVRO-3487: Update Jackson to 2.12.6.1 (#1640)

* AVRO-3487: Update Jackson to 2.12.6.1

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3487: Use jackson-bom for managing Jackson dependencies

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-265: Protocol.toJson writes null namespace (#1638)
Oscar Westra van Holthe - Kind [Wed, 13 Apr 2022 19:07:44 +0000 (21:07 +0200)] 
AVRO-265: Protocol.toJson writes null namespace (#1638)

This change fixes this cosmetic bug.

2 months agoAdd an entry for Rust to Github keywords/labels
Martin Tzvetanov Grigorov [Wed, 13 Apr 2022 18:58:46 +0000 (21:58 +0300)] 
Add an entry for Rust to Github keywords/labels

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoAVRO-3453: Add GeneratedCodeAttribute to generated code by avrogen (#1605)
Kyle Schoonover [Wed, 13 Apr 2022 18:34:03 +0000 (11:34 -0700)] 
AVRO-3453: Add GeneratedCodeAttribute to generated code by avrogen (#1605)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3453 Add GeneratedCodeAttribute to generated code by avrogen

* Fixed tabs

* Removed using and fully qualified the attribute

* Added global

* Update version display

* Updated way to get version.

* Add assembly for netcore 3.1

* Removed preprocessor

* Simplified readability of GetGeneratedCodeAttribute

* Added tabs

* Added validation step to verify the autogenerated attribute exists

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
2 months agoAVRO-3483: [Rust] Log error messages with a reason when the validation fails (#1636)
Martin Grigorov [Wed, 13 Apr 2022 09:17:25 +0000 (12:17 +0300)] 
AVRO-3483: [Rust] Log error messages with a reason when the validation fails (#1636)

* AVRO-3483: [Rust] Log error messages with a reason when the validation fails

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Add a failure reason for missing schema in a Union by index

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Assert the error log messages after failed validation

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Value::validate_internal() now returns Option<String>

Some brings the accumulated error message(s).
None means that the validation passed!

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Minor cleanup

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Add a test case for Value::Enum with index out of bounds

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Add a test case for the validation failure when Value::Map does not have items for the schema fields

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: TestLogger is enabled only for error logs

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3483: Do not allocate new Some's in accumulate function

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2 months agoBump jetty.version in /lang/java (#1633)
dependabot[bot] [Mon, 4 Apr 2022 07:56:08 +0000 (09:56 +0200)] 
Bump jetty.version in /lang/java (#1633)

Bumps `jetty.version` from 9.4.45.v20220203 to 9.4.46.v20220331.

Updates `jetty-server` from 9.4.45.v20220203 to 9.4.46.v20220331
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.45.v20220203...jetty-9.4.46.v20220331)

Updates `jetty-servlet` from 9.4.45.v20220203 to 9.4.46.v20220331
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.45.v20220203...jetty-9.4.46.v20220331)

Updates `jetty-util` from 9.4.45.v20220203 to 9.4.46.v20220331
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.45.v20220203...jetty-9.4.46.v20220331)

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-server
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-servlet
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago[AVRO-3460] follow up: reusing NameRef (#1627)
Jack Klamer [Wed, 30 Mar 2022 06:25:04 +0000 (01:25 -0500)] 
[AVRO-3460] follow up: reusing NameRef (#1627)

3 months agoAVRO-3435: Add --version to avrogen tool (#1583)
Zoltan Csizmadia [Wed, 30 Mar 2022 06:16:46 +0000 (01:16 -0500)] 
AVRO-3435: Add --version to avrogen tool (#1583)

* Add version to avrogen

* Use DefaultExeTargetFrameworks from common.props

* Add version to avrogencpp

* Remove file version check

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
3 months agoAVRO-3468: Handle default values for logical types (#1622)
Lucas Heimberg [Tue, 29 Mar 2022 08:31:52 +0000 (10:31 +0200)] 
AVRO-3468: Handle default values for logical types (#1622)

* AVRO-3468: Add handling of default values for logical types

This extends the resolver to handle default values for logical types
according to their base schema.

* AVRO-3468: Fix tests for conversion of default values to decimal logical type

Because of a possible bug in the handling of TestCaseData in NUnit,
the tests for the decimal logical type are separate from the tests
for other logical types.

* AVRO-3468: Add tests for decimal binary encoding

* AVRO-3468: Fix tests by parsing decimals culture-invariant

* AVRO-3468: Removes redundant using statement

* AVRO-3468: Add comment about CultureInfo to tests

Co-authored-by: l.heimberg <l.heimberg@cid.com>
3 months agoAVRO-3469: Add .NET 7.0 prerelease support (#1621)
Zoltan Csizmadia [Tue, 29 Mar 2022 08:10:06 +0000 (03:10 -0500)] 
AVRO-3469: Add .NET 7.0 prerelease support (#1621)

* Add .NET 7.0 prerelease support

* Fix comments

* Fix comments #2

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
3 months agoMove CanRead to constructor (#1625)
Zoltan Csizmadia [Tue, 29 Mar 2022 07:55:12 +0000 (02:55 -0500)] 
Move CanRead to constructor (#1625)

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
3 months agoAVRO-3471: Fix microsecond logical types resolution (#1623)
Zoltan Csizmadia [Tue, 29 Mar 2022 07:52:51 +0000 (02:52 -0500)] 
AVRO-3471: Fix microsecond logical types resolution (#1623)

* Fix us resolution in us logical types

* Add extra unit tests

* Move tests to LogicalTypeTests

* Rename _maxTime to _exclusiveUpperBound

* Use TimeSpan.FromDays(1) instead of 24h

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
3 months agoAVRO-3450: Document editor support for IDL (#1603)
Oscar Westra van Holthe - Kind [Thu, 24 Mar 2022 19:54:12 +0000 (20:54 +0100)] 
AVRO-3450: Document editor support for IDL (#1603)

* AVRO-3450: Document editor support for IDL

* Update doc/content/en/docs/next/IDL Language/_index.md

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
* Update doc/content/en/docs/next/IDL Language/_index.md

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
3 months agoAVRO-3467: Try to build with JDK 18 (stable) and 19 (early access) (#1619)
Martin Grigorov [Thu, 24 Mar 2022 19:50:12 +0000 (21:50 +0200)] 
AVRO-3467: Try to build with JDK 18 (stable) and 19 (early access) (#1619)

* AVRO-3467: Try to build with JDK 18 (stable) and 19 (early access)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3467: Use Oracle JDK for 18/19

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3460: [rust] Value::validate does not validate against Schema Refs (#1620)
Martin Grigorov [Thu, 24 Mar 2022 07:00:40 +0000 (09:00 +0200)] 
AVRO-3460: [rust] Value::validate does not validate against Schema Refs (#1620)

* AVRO-3460: [rust] Value::validate does not validate against Schema Refs

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3460: Mkdirs the data folder for interop data

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3460: Use validate_internal() for Schema::Ref too

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months ago[AVRO-3466] Serialize enum and fixed with namespace (#1617)
Jack Klamer [Tue, 22 Mar 2022 08:46:50 +0000 (03:46 -0500)] 
[AVRO-3466] Serialize enum and fixed with namespace (#1617)

* [AVRO-3466] serialize with namespace

Co-authored-by: kvc-code <kcarosso@gmail.com>
* AVRO-3466: Small improvements to the test cases

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: kvc-code <kcarosso@gmail.com>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3464: Print a header and use tabs as separators (#1614)
Martin Grigorov [Tue, 22 Mar 2022 08:05:28 +0000 (10:05 +0200)] 
AVRO-3464: Print a header and use tabs as separators (#1614)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3452: Implement custom deserialization for Name that employs the special parsing...
Martin Grigorov [Tue, 22 Mar 2022 08:04:07 +0000 (10:04 +0200)] 
AVRO-3452: Implement custom deserialization for Name that employs the special parsing of name and namespace (#1615)

* AVRO-3452: Implement custom deserialization for Name that employs the special parsing of name and namespace

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3452: Move the use/import of serde::de::Error in a higher scope so that it could be used for .map_err() call too

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoBump grpc.version from 1.44.1 to 1.45.0 in /lang/java (#1612)
dependabot[bot] [Sun, 20 Mar 2022 20:12:29 +0000 (22:12 +0200)] 
Bump grpc.version from 1.44.1 to 1.45.0 in /lang/java (#1612)

Bumps `grpc.version` from 1.44.1 to 1.45.0.

Updates `grpc-core` from 1.44.1 to 1.45.0
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.44.1...v1.45.0)

Updates `grpc-stub` from 1.44.1 to 1.45.0
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.44.1...v1.45.0)

Updates `grpc-netty` from 1.44.1 to 1.45.0
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.44.1...v1.45.0)

---
updated-dependencies:
- dependency-name: io.grpc:grpc-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.grpc:grpc-stub
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.grpc:grpc-netty
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoBump hadoop-client from 3.3.1 to 3.3.2 in /lang/java (#1611)
dependabot[bot] [Sun, 20 Mar 2022 20:10:55 +0000 (22:10 +0200)] 
Bump hadoop-client from 3.3.1 to 3.3.2 in /lang/java (#1611)

Bumps hadoop-client from 3.3.1 to 3.3.2.

---
updated-dependencies:
- dependency-name: org.apache.hadoop:hadoop-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoAVRO-3451: Reuse Resolved Schemas (#1608)
Jack Klamer [Sun, 20 Mar 2022 20:07:59 +0000 (15:07 -0500)] 
AVRO-3451: Reuse Resolved Schemas (#1608)

* [AVRO-3451] reuse resolved schema

* AVRO-3451: Reuse Resolved Schemas

Remove useless check.
Always set `self.attempted_resolve = true`. There is no harm even if it was true already

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* [AVRO-3451] remove bool

Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3461: Resolve flow namespace resolution work (#1609)
Jack Klamer [Sun, 20 Mar 2022 19:40:26 +0000 (14:40 -0500)] 
AVRO-3461: Resolve flow namespace resolution work (#1609)

* remove clones

* [AVRO-3461] added in fixes and tests

3 months agoAVRO-3441: ServiceLoader for LogicalTypeFactory (#1590)
Oscar Westra van Holthe - Kind [Fri, 18 Mar 2022 19:18:52 +0000 (20:18 +0100)] 
AVRO-3441: ServiceLoader for LogicalTypeFactory (#1590)

Automatically register LogicalTypeFactory classes using the Java 6
service loader upon startup. This works for any LogicalTypeFactory that
does not need constructor parameters.

3 months agoAVRO-3378: Map old links to new website (#1592)
Ryan Skraba [Fri, 18 Mar 2022 19:00:56 +0000 (20:00 +0100)] 
AVRO-3378: Map old links to new website (#1592)

3 months agoAVRO-3444: Directly link to api documentation (#1593)
Ryan Skraba [Fri, 18 Mar 2022 19:00:47 +0000 (20:00 +0100)] 
AVRO-3444: Directly link to api documentation (#1593)

* AVRO-3444: Directly link to api documentation

* AVRO-3444: Add missing licenses

3 months agoAVRO-3446: Add avrogen unit tests (#1595)
Zoltan Csizmadia [Fri, 18 Mar 2022 18:58:51 +0000 (13:58 -0500)] 
AVRO-3446: Add avrogen unit tests (#1595)

* Add avrogen unit tests

* Hide dynamic compiler errors

* Add asserts

* Bump MSBUild package versions

* Tweak dotnet 6.0 install

* Add comments

* Use 6.0.2xx channel

* Revert dotnet-install change

* Add codegen tests

* Add test for contextual keyword in namespace

* Add AvroGenHelper

* Update lang/csharp/src/apache/main/CodeGen/CodeGenUtil.cs

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
* Update lang/csharp/src/apache/test/AvroGen/AvroGenHelper.cs

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
3 months ago[AVRO-3448][rust] Rust name/namespace spec adherence work (#1602)
Jack Klamer [Fri, 18 Mar 2022 06:21:43 +0000 (01:21 -0500)] 
[AVRO-3448][rust] Rust name/namespace spec adherence work (#1602)

* resolved schema struct

* matrix testing started

* [AVRO-3448] encode, decode, parsing in allignment with name/namespace spec

* [AVRO-3448] clippy

* Update lang/rust/avro/src/util.rs

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
* Update lang/rust/avro/src/schema.rs

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
* [AVRO-3448] encode with Result return

* [AVRO-3448] clean up types and tests

* AVRO-3448: Fix a typo in an error variant

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoBump mocha from 9.2.1 to 9.2.2 in /lang/js (#1598)
dependabot[bot] [Thu, 17 Mar 2022 14:21:05 +0000 (16:21 +0200)] 
Bump mocha from 9.2.1 to 9.2.2 in /lang/js (#1598)

Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.1 to 9.2.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.1...v9.2.2)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoUpdate zstd requirement in /lang/rust (#1599)
dependabot[bot] [Thu, 17 Mar 2022 14:17:24 +0000 (16:17 +0200)] 
Update zstd requirement in /lang/rust (#1599)

Updates the requirements on [zstd](https://github.com/gyscos/zstd-rs) to permit the latest version.
- [Release notes](https://github.com/gyscos/zstd-rs/releases)
- [Commits](https://github.com/gyscos/zstd-rs/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: zstd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoBump netty-bom from 4.1.74.Final to 4.1.75.Final in /lang/java (#1601)
dependabot[bot] [Thu, 17 Mar 2022 13:39:31 +0000 (15:39 +0200)] 
Bump netty-bom from 4.1.74.Final to 4.1.75.Final in /lang/java (#1601)

Bumps [netty-bom](https://github.com/netty/netty) from 4.1.74.Final to 4.1.75.Final.
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.74.Final...netty-4.1.75.Final)

---
updated-dependencies:
- dependency-name: io.netty:netty-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoAVRO-3440: Fix bug in Protocol.createMessage (#1586)
Oscar Westra van Holthe - Kind [Thu, 10 Mar 2022 18:27:46 +0000 (19:27 +0100)] 
AVRO-3440: Fix bug in Protocol.createMessage (#1586)

* AVRO-3440: Fix bug in Protocol.createMessage

* AVRO-3440: Spotless

3 months agoAVRO-3442: Add codec build to RAT excludes (#1591)
Ryan Skraba [Thu, 10 Mar 2022 17:17:14 +0000 (18:17 +0100)] 
AVRO-3442: Add codec build to RAT excludes (#1591)

3 months agoBump netty-bom from 4.1.72.Final to 4.1.74.Final in /lang/java (#1581)
dependabot[bot] [Tue, 8 Mar 2022 19:58:26 +0000 (21:58 +0200)] 
Bump netty-bom from 4.1.72.Final to 4.1.74.Final in /lang/java (#1581)

Bumps [netty-bom](https://github.com/netty/netty) from 4.1.72.Final to 4.1.74.Final.
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.1.72.Final...netty-4.1.74.Final)

---
updated-dependencies:
- dependency-name: io.netty:netty-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoAVRO-3370: Allow complex types as names (#1533)
Ryan Skraba [Tue, 8 Mar 2022 18:34:55 +0000 (19:34 +0100)] 
AVRO-3370: Allow complex types as names (#1533)

3 months agoAVRO-3370: Clarify spec with regards to permitted names (#1573)
Ryan Skraba [Tue, 8 Mar 2022 18:33:07 +0000 (19:33 +0100)] 
AVRO-3370: Clarify spec with regards to permitted names (#1573)

* AVRO-3370: Clarify spec with regards to permitted names

* Suggestion when to use a namespace

3 months agoAVRO-3437: Rust: Update dependencies (#1585)
Martin Grigorov [Tue, 8 Mar 2022 14:37:59 +0000 (16:37 +0200)] 
AVRO-3437: Rust: Update dependencies (#1585)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months ago[AVRO-3433][rust] Adding in Resolve Fixes and Tests (#1582)
Jack Klamer [Tue, 8 Mar 2022 06:01:19 +0000 (00:01 -0600)] 
[AVRO-3433][rust] Adding in Resolve Fixes and Tests (#1582)

* AVRO-3433: Rust: The canonical form should preserve schema references

Do not resolve Schema::Ref when printing as JSON.
The Java SDK complains that a type is redefined if it is not a Ref the
second time

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Use Name as a key for parsed/resolving/input schemata

This is needed to have the fullname (namespace + '.' + name) for lookups

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: adding in resolve fixes and tests

* AVRO-3433: Fix formatting and clippy errors

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Give better names to the new test cases

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Collect all Union schemata in schemas_by_name to be able to resolve Schema::Ref's

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Add schema name validation

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Use the regex to capture the namespace and name

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Register all union's schemata in schemas_by_name, so that Schema::Ref's can be resolved

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Add in encoding tests

Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
3 months agoAVRO-3433: Rust: The canonical form should preserve schema references (#1580)
Martin Grigorov [Mon, 7 Mar 2022 12:47:50 +0000 (14:47 +0200)] 
AVRO-3433: Rust: The canonical form should preserve schema references (#1580)

* AVRO-3433: Rust: The canonical form should preserve schema references

Do not resolve Schema::Ref when printing as JSON.
The Java SDK complains that a type is redefined if it is not a Ref the
second time

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Use Name as a key for parsed/resolving/input schemata

This is needed to have the fullname (namespace + '.' + name) for lookups

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3433: Name::new("...") should parse the optional namespace

This is a breaking change but a bug fix to properly implement the Avro specification

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3421 Added more test coverage to ArraySchema (#1569)
Kyle Schoonover [Thu, 3 Mar 2022 14:39:17 +0000 (06:39 -0800)] 
AVRO-3421 Added more test coverage to ArraySchema (#1569)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3421 Better code coverage for ArraySchema

* Added Equals tests

* Test fixes

* revert ArraySchema

* Revert spacing

Co-authored-by: Kyle T. Schoonover <Kyle.T.Schoonover@nordstrom.com>
3 months agoAVRO-3416: Benchmarking project for C# (#1566)
Zoltan Csizmadia [Thu, 3 Mar 2022 14:36:51 +0000 (08:36 -0600)] 
AVRO-3416: Benchmarking project for C# (#1566)

* Add benchmarking project

* Add license

* Change namesapce to org.apache.avro.benchmark

* Add license

* Add benchmark to README.MD

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
3 months agoBump grpc.version from 1.44.0 to 1.44.1 in /lang/java (#1572)
dependabot[bot] [Thu, 3 Mar 2022 14:29:11 +0000 (16:29 +0200)] 
Bump grpc.version from 1.44.0 to 1.44.1 in /lang/java (#1572)

Bumps `grpc.version` from 1.44.0 to 1.44.1.

Updates `grpc-core` from 1.44.0 to 1.44.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.44.0...v1.44.1)

Updates `grpc-stub` from 1.44.0 to 1.44.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.44.0...v1.44.1)

Updates `grpc-netty` from 1.44.0 to 1.44.1
- [Release notes](https://github.com/grpc/grpc-java/releases)
- [Commits](https://github.com/grpc/grpc-java/compare/v1.44.0...v1.44.1)

---
updated-dependencies:
- dependency-name: io.grpc:grpc-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.grpc:grpc-stub
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.grpc:grpc-netty
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoAVRO-1965: Add the unit test from the patch attached to AVRO-1965 (#1576)
Martin Grigorov [Thu, 3 Mar 2022 14:27:02 +0000 (16:27 +0200)] 
AVRO-1965: Add the unit test from the patch attached to AVRO-1965 (#1576)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3431: CI: Cancel in-progress workflows if there are new commits in PR (#1577)
Martin Grigorov [Thu, 3 Mar 2022 14:25:08 +0000 (16:25 +0200)] 
AVRO-3431: CI: Cancel in-progress workflows if there are new commits in PR (#1577)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
3 months agoAVRO-3428: Rust: Restructure the RUST SDK to a Rust workspace (#1575)
Martin Grigorov [Thu, 3 Mar 2022 11:48:07 +0000 (13:48 +0200)] 
AVRO-3428: Rust: Restructure the RUST SDK to a Rust workspace (#1575)

* AVRO-3428: Rust: Restructure the RUST SDK to a Rust workspace

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* AVRO-3428: Add ASL to the new root Cargo.toml

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
4 months agoAVRO-3420: Ensure IDL reference is identical (#1568)
Ryan Skraba [Mon, 28 Feb 2022 14:01:53 +0000 (15:01 +0100)] 
AVRO-3420: Ensure IDL reference is identical (#1568)

4 months agoAVRO-3414: Ensure word-for-word accuracy with existing spec (#1564)
Ryan Skraba [Mon, 28 Feb 2022 11:12:31 +0000 (12:12 +0100)] 
AVRO-3414: Ensure word-for-word accuracy with existing spec (#1564)

4 months agoAVRO-3370: [Spec] Inconsistent behaviour on types as invalid names. (#1525)
Martin Grigorov [Fri, 25 Feb 2022 22:20:17 +0000 (00:20 +0200)] 
AVRO-3370: [Spec] Inconsistent behaviour on types as invalid names. (#1525)

Support references to types named after Avro complex types (record, enum
& fixed)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
4 months agoAVRO-3388: Extra codecs in C# (#1536)
Zoltan Csizmadia [Fri, 25 Feb 2022 21:34:15 +0000 (15:34 -0600)] 
AVRO-3388: Extra codecs in C# (#1536)

* Initial extra codec support

* Add tests

* Add license info

* Add codec build/test step

* Install libzstd1 package

* Add libzstd-dev package

* Add stream compress unit tests

* Add brotli

* Change comment

* Minor cleanups

* Add libzstd-dev

* Dynamically create extra codecs

* Add interop-data tests

* Add libzstd-dev package to gitflow

* Set logger verbosity level

* Run interop-data-test on Avro.test

* Check without Zstandrad.Decompress without AsSpan

* Use Zstandard.Net

* Use SequenceEqual instead of CollectionAssert

* Cleanup dotnet-install.sh in travis.yml

* Run Avro.test.FileTests on all codec types

* Fix whitespace

* Add test to check avro file with many records

* AGenerate C# interop data in test-lang-java

* Add description

* Add codecs to README

* Add readonly to member

* Implement GetHashCode

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
4 months agoBump jetty.version in /lang/java (#1562)
dependabot[bot] [Fri, 25 Feb 2022 21:15:02 +0000 (23:15 +0200)] 
Bump jetty.version in /lang/java (#1562)

Bumps `jetty.version` from 9.4.44.v20210927 to 9.4.45.v20220203.

Updates `jetty-server` from 9.4.44.v20210927 to 9.4.45.v20220203
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.44.v20210927...jetty-9.4.45.v20220203)

Updates `jetty-servlet` from 9.4.44.v20210927 to 9.4.45.v20220203
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.44.v20210927...jetty-9.4.45.v20220203)

Updates `jetty-util` from 9.4.44.v20210927 to 9.4.45.v20220203
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.44.v20210927...jetty-9.4.45.v20220203)

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-server
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-servlet
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.eclipse.jetty:jetty-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months agoAVRO-2175: Fix build scripts and instructions (#1563)
Ryan Skraba [Fri, 25 Feb 2022 11:14:16 +0000 (12:14 +0100)] 
AVRO-2175: Fix build scripts and instructions (#1563)

* AVRO-2175: Fix build scripts and instructions

* Update README.md

4 months agoAVRO-3411: Support VSCode devcontainer (#1557)
Zoltan Csizmadia [Fri, 25 Feb 2022 10:12:35 +0000 (04:12 -0600)] 
AVRO-3411: Support VSCode devcontainer (#1557)

* Add devcontainer file

* Add info to BUILD.md

* Fix whitespaces

* Add only scripts to gitattributes

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
4 months agoUpdate strum_macros requirement from 0.23.1 to 0.24.0 in /lang/rust (#1560)
dependabot[bot] [Fri, 25 Feb 2022 09:02:24 +0000 (11:02 +0200)] 
Update strum_macros requirement from 0.23.1 to 0.24.0 in /lang/rust (#1560)

Updates the requirements on [strum_macros](https://github.com/Peternator7/strum) to permit the latest version.
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum_macros
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
4 months agoUpdate strum requirement from 0.23.0 to 0.24.0 in /lang/rust (#1561)
dependabot[bot] [Fri, 25 Feb 2022 07:45:56 +0000 (09:45 +0200)] 
Update strum requirement from 0.23.0 to 0.24.0 in /lang/rust (#1561)

Updates the requirements on [strum](https://github.com/Peternator7/strum) to permit the latest version.
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months agoAVRO-3418: [Rust] Fix clippy errors for Rust 1.59.0
Martin Tzvetanov Grigorov [Fri, 25 Feb 2022 07:42:37 +0000 (09:42 +0200)] 
AVRO-3418: [Rust] Fix clippy errors for Rust 1.59.0

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
4 months agoFix logo.png location and name (#1567)
Zoltan Csizmadia [Fri, 25 Feb 2022 07:16:00 +0000 (01:16 -0600)] 
Fix logo.png location and name (#1567)

Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
4 months agoRevert "AVRO-2175: Refine leftover resources"
Ryan Skraba [Thu, 24 Feb 2022 17:54:51 +0000 (18:54 +0100)] 
Revert "AVRO-2175: Refine leftover resources"

This reverts commit 7d4e46bb848ea9f2d0c3642787fd265bef9d7bfa.