Kyle Schoonover [Tue, 3 May 2022 18:54:08 +0000 (11:54 -0700)]
AVRO-3499 Remove unnecessary suppressions (#1656)
dependabot[bot] [Tue, 3 May 2022 18:53:12 +0000 (21:53 +0300)]
Bump javacc from 7.0.10 to 7.0.11 in /lang/java (#1676)
Bumps [javacc](https://github.com/javacc/javacc) from 7.0.10 to 7.0.11.
- [Release notes](https://github.com/javacc/javacc/releases)
- [Changelog](https://github.com/javacc/javacc/blob/master/docs/release-notes.md)
- [Commits](https://github.com/javacc/javacc/compare/javacc-7.0.10...javacc-7.0.11)
---
updated-dependencies:
- dependency-name: net.java.dev.javacc:javacc
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>
dependabot[bot] [Tue, 3 May 2022 18:52:22 +0000 (21:52 +0300)]
Bump protobuf-java from 3.19.4 to 3.20.1 in /lang/java (#1675)
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.19.4 to 3.20.1.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.19.4...v3.20.1)
---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
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>
dependabot[bot] [Tue, 3 May 2022 18:46:20 +0000 (21:46 +0300)]
Bump mocha from 9.2.2 to 10.0.0 in /lang/js (#1674)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0.
- [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.2...v10.0.0)
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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>
Thiruvalluvan M G [Mon, 2 May 2022 04:33:54 +0000 (21:33 -0700)]
Updated the checksum for PHP composer download (#1677)
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>
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.
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>
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
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>
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>
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>
Kyle Schoonover [Thu, 21 Apr 2022 18:17:27 +0000 (11:17 -0700)]
AVRO-3498 Deprecate NameCtorKey (#1657)
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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>
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>
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>
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>
Jack Klamer [Wed, 30 Mar 2022 06:25:04 +0000 (01:25 -0500)]
[AVRO-3460] follow up: reusing NameRef (#1627)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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.
Ryan Skraba [Fri, 18 Mar 2022 19:00:56 +0000 (20:00 +0100)]
AVRO-3378: Map old links to new website (#1592)
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
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>
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>
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>
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>
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>
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
Ryan Skraba [Thu, 10 Mar 2022 17:17:14 +0000 (18:17 +0100)]
AVRO-3442: Add codec build to RAT excludes (#1591)
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>
Ryan Skraba [Tue, 8 Mar 2022 18:34:55 +0000 (19:34 +0100)]
AVRO-3370: Allow complex types as names (#1533)
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ryan Skraba [Mon, 28 Feb 2022 14:01:53 +0000 (15:01 +0100)]
AVRO-3420: Ensure IDL reference is identical (#1568)
Ryan Skraba [Mon, 28 Feb 2022 11:12:31 +0000 (12:12 +0100)]
AVRO-3414: Ensure word-for-word accuracy with existing spec (#1564)
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>
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>
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>
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
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>
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>
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>
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>