-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[AVRO-3516] Fix bugs in derive macro usage #1683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
martin-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a JIRA issue for the bug and update the title of the PR to include AVRO-1234: ...
Also the commit messages should be prefixed with AVRO-1234:
I could do these ^^ too!
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
443dbcd to
2310477
Compare
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
|
@martin-g I think the examples and other tests run in dev mode where the apache_avro_derive is a dependency directly so didn't need to be imported into avro/src/lib.rs like we have to now! Thats my guess at least. Making JIRA now. |
|
Good guess! I will remove the new example and merge! |
|
Hm. It still fails the same way even after adding |
|
Using just But listing both dependencies explicitly does not. |
It cannot work as an 'example' (apache#1683 (comment)) Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
It cannot work as an 'example' (apache#1683 (comment)) Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
fda07f7 to
ed31668
Compare
* bug fix and build fix * remove uneeded component trait * no hidden doc * boolean schema * fmt * Reduce the enabled features only to the ones required by the test Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Add an example for schema derivation Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Pretty print the derived schema Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * [AVRO-3516] remove circular package dependency * AVRO-3516: Remove the derive-compilation example It cannot work as an 'example' (#1683 (comment)) Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> (cherry picked from commit 3fafde2)
|
Thank you, @jklamer ! |
* bug fix and build fix * remove uneeded component trait * no hidden doc * boolean schema * fmt * Reduce the enabled features only to the ones required by the test Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Add an example for schema derivation Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Pretty print the derived schema Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * [AVRO-3516] remove circular package dependency * AVRO-3516: Remove the derive-compilation example It cannot work as an 'example' (apache/avro#1683 (comment)) Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Silly build mistake I made: was not able to use derive macro without including in lib.rs.
+
Need to qualify HashMap in derive macro for use in contexts where hash map not imported.
results in being able to use as: