[
https://issues.apache.org/jira/browse/DRILL-8474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055814#comment-18055814
]
ASF GitHub Bot commented on DRILL-8474:
---------------------------------------
cgivre commented on PR #2989:
URL: https://github.com/apache/drill/pull/2989#issuecomment-3831879623
> I would like this to be tested with the example schema mentioned above.
>
> I'm unclear on a detail here as to whether this approach will work.
>
> The directory containing the "create daffodil schema" jar files isn't what
needs to be on the classpath. Rather, each daffodil plugin jar file
individually needs to be on the classpath. Daffodil is using the java SPI which
searches for META-INF files in each jar on the classpath to find daffodil's
plugins.
>
> For code security reasons (I suppose) the idea that software can modify
its own classpath dynamically seems to require quite a lot of jumping through
hoops in Java/JVMs e.g., separate class loaders which adds a fair bit of
complexity (ex: https://chatgpt.com/share/697f9c04-3700-800f-941b-0ff7fc5d3a74).
@mbeckerle
There is a unit test which tests the entire lifecycle. Does this work for
you?
https://github.com/cgivre/drill/blob/5001abfaa74eb9d4f06cc98ec8e0f041d56cb21d/contrib/format-daffodil/src/test/java/org/apache/drill/exec/store/daffodil/TestDaffodilSchemaRegistrationIntegration.java#L194-L245.
> Add Daffodil Format Plugin
> --------------------------
>
> Key: DRILL-8474
> URL: https://issues.apache.org/jira/browse/DRILL-8474
> Project: Apache Drill
> Issue Type: New Feature
> Affects Versions: 1.21.1
> Reporter: Charles Givre
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)