Github user rama-mullapudi commented on the pull request:
https://github.com/apache/spark/pull/8056#issuecomment-131272280
jdbcutils scala code has a typo error in schemaString function, decimal
type has extra closing braces } which is causing create table with decimal fail
as create statement sent to db looks as below
CREATE TABLE foo (TKT_GID DECIMAL(10},0}) NOT NULL)
Below is the code
def schemaString(df: DataFrame, url: String): String = {
.....
case t: DecimalType => s"DECIMAL(${t.precision}},${t.scale}})"
....
}
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]