-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-5135][SQL] Add support for describe [extended] table to DDL in SQLContext #4127
Conversation
[SPARK-5135][SQL] Add support for describe [extended] table to DDL in SQLContext Conflicts: sql/catalyst/src/main/scala/org/apache/spark/sql/types/dataTypes.scala
Test build #25859 has started for PR 4127 at commit
|
Test build #25859 has finished for PR 4127 at commit
|
Test PASSed. |
@@ -300,6 +301,8 @@ case object StringType extends NativeType with PrimitiveType { | |||
* The default size of a value of the StringType is 4096 bytes. | |||
*/ | |||
override def defaultSize: Int = 4096 | |||
|
|||
override def toSimpleString = "string" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this what typeName
is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here to replace string
with TypeName
is ok.
But not all typeName
equals simple string
.
i.e
LongType, the typeName
of it is long
but not bigint
... etc...
def typeName: String = this.getClass.getSimpleName.stripSuffix("$").dropRight(4).toLowerCase
Thanks. Do you mind closing this one? |
ok, please close this one : ) |
I don't have permission to do it. Can you click the close button? |
I don't have permission, too. I only have |
Ah never mind this is my own pull request. Closing it. |
Hi, rxin marmbrus I considered your suggestion (in #4127) and now re-write it. This is now up-to-date. Could u please review it ? Author: OopsOutOfMemory <victorshengli@126.com> Closes #4227 from OopsOutOfMemory/describe and squashes the following commits: 053826f [OopsOutOfMemory] describe (cherry picked from commit 4d8d070) Signed-off-by: Reynold Xin <rxin@databricks.com>
This brings #3935 up to date and fixes style violations.