[
https://issues.apache.org/jira/browse/PHOENIX-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709622#comment-14709622
]
Josh Mahonin commented on PHOENIX-2196:
---------------------------------------
Hi [~randerzander] I just uploaded a modified patch based on your PR. The only
main difference is we're invoking 'SchemaUtil.normalizeIdentifier()', which
under the hood does the same transformation logic you had anyway. It also
includes a unit test that works on one of the existing test tables with both
upper and lowercase table names.
I tried to use the spark-csv library for the unit tests as a complete example,
but a really useful helper method they added recently, csvRdd(), isn't
available in the released version. If you could test this patch out on your end
and let us know if it works for you, that'd be great.
> phoenix-spark should automatically convert DataFrame field names to all caps
> ----------------------------------------------------------------------------
>
> Key: PHOENIX-2196
> URL: https://issues.apache.org/jira/browse/PHOENIX-2196
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Randy Gelhausen
> Priority: Minor
> Attachments: PHOENIX-2196.patch
>
>
> phoenix-spark will fail to save a DF into a Phoenix table if the DataFrame's
> fields are not all capitalized. Since Phoenix internally capitalizes all
> column names, the DataFrame.save method should automatically capitalize DF
> field names as a convenience to the end user.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)