[
https://issues.apache.org/jira/browse/APEXCORE-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15804259#comment-15804259
]
Ajay Gupta commented on APEXCORE-592:
-------------------------------------
The output of get-app-package-info are the list of <property></property> tags
specified in properties.xml and we have no control over whether we have
specified an attribute or property in the <property> tags.
I believe that the example above is causing the misunderstanding since I have
mistakenly given example of single attribute instead of property.
Following is the updated example output for get-app-package-info which
indicates the property description output along with the property value.
Old output:
<code>
"dt.application.HiveMapInsertBenchmarkingApp.operator.HiveOperator.tablename":
"tempMap",
"dt.application.HiveMapInsertBenchmarkingApp.operator.RollingFsMapWriter.delimiter":
":",
"dt.application.HiveMapInsertBenchmarkingApp.operator.RollingFsMapWriter.maxLength":
"512",
"dt.application.couchbaseAppOutput.operator.couchbaseOutput.store.max_tuples":
"1000",
</code>
New output:
<code>
"dt.application.HiveMapInsertBenchmarkingApp.operator.HiveOperator.tablename": {
"value": "tempMap",
"description": "tablename for insert map"
},
"dt.application.HiveMapInsertBenchmarkingApp.operator.RollingFsMapWriter.delimiter":
{
"value": ":",
"description": "Delimiter for map"
},
"dt.application.HiveMapInsertBenchmarkingApp.operator.RollingFsMapWriter.maxLength":
{
"value": "512",
"description": "Max Length"
},
"dt.application.couchbaseAppOutput.operator.couchbaseOutput.store.max_tuples": {
"value": "1000",
"description": null
},
</code>
Also, I could not find any separate API which retrieves the description of
properties.
Kindly let me know if my understanding here is wrong for the required task and
if anything else is required. I will open PR if the community finds the above
output acceptable.
> Returning description field in defaultProperties during apex cli call
> get-app-package-info
> ------------------------------------------------------------------------------------------
>
> Key: APEXCORE-592
> URL: https://issues.apache.org/jira/browse/APEXCORE-592
> Project: Apache Apex Core
> Issue Type: Improvement
> Reporter: Ajay Gupta
> Priority: Minor
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently for an operator property, only the value field is returned. The
> operator property can have a description describing the property. This task
> is created to return this filed for that operator property.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)