-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
AVRO-2918: [java] Schema polymorphism #2322
base: main
Are you sure you want to change the base?
Conversation
} else | ||
a0.clear(); | ||
SpecificData.Array<java.lang.CharSequence> ga0 = (a0 instanceof SpecificData.Array | ||
? (SpecificData.Array<java.lang.CharSequence>) a0 |
Check warning
Code scanning / CodeQL
Cast from abstract to concrete collection Warning test
List
Array
} else | ||
a1.clear(); | ||
SpecificData.Array<java.lang.Integer> ga1 = (a1 instanceof SpecificData.Array | ||
? (SpecificData.Array<java.lang.Integer>) a1 |
Check warning
Code scanning / CodeQL
Cast from abstract to concrete collection Warning test
List
Array
} else | ||
a0.clear(); | ||
SpecificData.Array<java.lang.CharSequence> ga0 = (a0 instanceof SpecificData.Array | ||
? (SpecificData.Array<java.lang.CharSequence>) a0 |
Check warning
Code scanning / CodeQL
Cast from abstract to concrete collection Warning test
List
Array
} else | ||
a1.clear(); | ||
SpecificData.Array<java.lang.Integer> ga1 = (a1 instanceof SpecificData.Array | ||
? (SpecificData.Array<java.lang.Integer>) a1 |
Check warning
Code scanning / CodeQL
Cast from abstract to concrete collection Warning test
List
Array
generic.put("name", "foo"); | ||
generic.put("kind", new GenericData.EnumSymbol(Kind.SCHEMA$, "BAR")); | ||
generic.put("hash", | ||
new GenericData.Fixed(MD5.SCHEMA$, new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5 })); | ||
TestRecord specific = (TestRecord) SpecificData.get().deepCopy(TestRecord.SCHEMA$, generic); | ||
TestRecord specific = (TestRecord) SpecificData.get().deepCopy(TestRecord.getClassSchema(), generic); |
Check notice
Code scanning / CodeQL
Unread local variable Note test
lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
Fixed
Show fixed
Hide fixed
83f4bbf
to
8968ca0
Compare
8968ca0
to
65568a3
Compare
lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
Fixed
Show fixed
Hide fixed
lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
Fixed
Show fixed
Hide fixed
63e2742
to
575feb9
Compare
author Christophe Le Saec <clesaec@talend.com> 1658414469 +0200 committer Christophe Le Saec <clesaec@talend.com> 1702483472 +0100 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEik1F1e1qC/83ZVhPUZ9LZmkJEUAFAmV51hAACgkQUZ9LZmkJ EUC6Qw//WE43vrjCqYrjaoCMGEjJui616MvKFCUtwILmoE8GU2aP/y2odP7jAnvJ 04RJHMaC03sV61kta0RYarPcCxaewu4Up/c+0RVNWqDb6gZZHA8hWW9I5TZdk106 JXdSeyjSy45MUJPPM1xwrI+5+ZfTC9gtYxb7iXQI8fNmN9x+a91x1L1GViSXMRAF DSPlLgYteFZvTFw4jdwndCrKL1BcyPWfF5p984kEI4hW0Gemm/+bTM90dwSBP0bN PvePHJ9rpkwo8j8xdyNSNWvomN7sUYDF4c5AKHQfVpzbNxTrYBjkGi/tqF4BQx9j yP4jvEvzQmg2yUmapNMmqGkwh2h7MQo2kQMEjKFvQuyBxsgIzonb+gw2+Y8L2iVG 0BzDlFVdeKiWiOsBdXSjWa1Cfjbva9UsrrvcX5WIuXflcDQdvRlHXHBCrk0x6jQt /SqoANMnA8zssj4Wk5aWIS1TcO/Gupe2OBAJUjd98BkgklJ4NuD529vubmgLYFyE QzxVdTCCJRJIUklEMOGXRMkdI1tamw6W8Q4yPTRSoHwYpy8UZCCmbVusY5HGoYSb 7OCa9szFV55F8J07ZN8USh2aJ9AxtRxr6MQo+LKvNDIR5hz2UNmizQHdvdMnbT24 jeYVSjdlgDI76sB+7QXwACQXUqv6mFEKzVVhubLErIw8MigNw+Y= =DXiY -----END PGP SIGNATURE----- AVRO-2918: First proposition for polymorphism AVRO-2918: poly AVRO-2918: fix fast reader AVRO-2918: retrieve unused class AVRO-2918: fix unit test AVRO-2918: rebased done AVRO-2918: First proposition for polymorphism AVRO-2918: include generated code AVRO-2918: add Apache license AVRO-2918: fix generated record AVRO-2918: Adapt unit test AVRO-2918: fix deprecated AVRO-2918: fix compiler
575feb9
to
820f54b
Compare
What is the purpose of the change
AVRO-2918 : Add inheritance between schema, allow to define record schema as child of another.
This PR is to explore generated java code that complete first PR that only include inheritance for IndexedRecord and schema.
So, as code generation should have been modified, it imply lot of tests generated code.
Verifying this change
Documentation