phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randerzander <...@git.apache.org>
Subject [GitHub] phoenix pull request: PHOENIX-2196 - auto capitalize field names i...
Date Sun, 23 Aug 2015 18:25:42 GMT
Github user randerzander commented on the pull request:

    https://github.com/apache/phoenix/pull/114#issuecomment-133893731
  
    As an example, reading a CSV file where headers aren't capitalized, the below is necessary
before calling df.save:
    
    var df = sqlContext.read.format("com.databricks.spark.csv").option("header", "true").option("DROPMALFORMED",
"true").load(input)
    val columns = df.columns.map(x => x.toUpperCase)
    df = df.toDF(columns:_*)
    
    It would be nice for end users if the .save implementation handled this detail


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message