You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/06/22 22:07:16 UTC
[jira] [Updated] (SPARK-16157) Add New Methods for Comments in
StructField and StructType
[ https://issues.apache.org/jira/browse/SPARK-16157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li updated SPARK-16157:
----------------------------
Description:
Currently, the column-related comment attribute is stored in {{Metadata}}. For example,
{noformat}
StructType(
StructField("cl1", IntegerType, nullable = false,
new MetadataBuilder().putString("comment", "test").build()) :: Nil)
{noformat}
Compared with the existing SQL interface, it is not user friendly to add such a comment attribute when defining a {{StructField}}.
was:
Currently, the column-related comment attribute is stored in {{Metadata}}. For example,
{{noformat}}
StructType(
StructField("cl1", IntegerType, nullable = false,
new MetadataBuilder().putString("comment", "test").build()) :: Nil)
{{noformat}}
Compared with the existing SQL interface, it is not user friendly to add such a comment attribute when defining a {{StructField}}.
> Add New Methods for Comments in StructField and StructType
> ----------------------------------------------------------
>
> Key: SPARK-16157
> URL: https://issues.apache.org/jira/browse/SPARK-16157
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
>
> Currently, the column-related comment attribute is stored in {{Metadata}}. For example,
> {noformat}
> StructType(
> StructField("cl1", IntegerType, nullable = false,
> new MetadataBuilder().putString("comment", "test").build()) :: Nil)
> {noformat}
> Compared with the existing SQL interface, it is not user friendly to add such a comment attribute when defining a {{StructField}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org