Skip to content
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

keys starting with numeric string are throwing the following exception while generating PDL schema #795

Open
satsrini opened this issue May 10, 2022 · 2 comments

Comments

@satsrini
Copy link

satsrini commented May 10, 2022

Hi Team,
We use the maven repo https://mvnrepository.com/artifact/com.linkedin.pegasus/data/27.7.18.

Keys starting with numeric string are throwing the following exception while generating PDL schema.

Exception in thread "main" java.lang.IllegalArgumentException: 1,93: "00100030" is an invalid field name.

at com.linkedin.data.template.DataTemplateUtil.parseSchema(DataTemplateUtil.java:313)
at com.linkedin.data.template.DataTemplateUtil.parseSchema(DataTemplateUtil.java:291)

Details: We are trying to convert 'dicom' json data/schema to 'PDL'. 'dicom' data has lot of keys(string) that start with a numeral say "0020000D"

eg:
{
"0020000D": {
"vr": "UI",
"Value": [ "1.2.392.200036.9116.2.2.2.1762893313.1029997326.945873" ]
}
}
Note: The complete dicom data file can be found https://dicom.nema.org/dicom/2013/output/chtml/part18/sect_F.4.html

But the "linkedin pegasus data" library does not allow keys which start with a number, eg "0020000D", while creating PDL schema.

Please let us know if you need more details

@satsrini
Copy link
Author

Hi Team,

Can you please let us know any update on this defect please ?

Thanks
Satish Srinivasan

@evanw555
Copy link
Contributor

@satsrini That's quite an old version of pegasus, please try using our newer versions, which can be found at https://linkedin.jfrog.io/artifactory/pegasus/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants