-
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-14349] [SQL] Issue Error Messages for Unsupported Operators/DML/DDL in SQL Context. #12134
Changes from all commits
01e4cdf
6835704
9180687
b38a21e
d2b84af
fda8025
ac0dccd
6e0018b
0546772
b37a64f
c2a872c
ab6dbd7
4276356
2dab708
0458770
1debdfa
763706d
4de6ec1
9422a4f
52bdf48
1e95df3
fab24cf
8b2e33b
2ee1876
b9f0090
ade6f7e
9fd63d2
5199d49
404214c
c001dd9
59daa48
41d5f64
472a6e3
0fba10a
cbf73b3
c08f561
474df88
3d9828d
72d2361
07afea5
8bf2007
87a165b
b9359cd
e09ac7c
62c814d
4178291
5807347
3a2f06e
f3d886f
51a9b69
8c5f1e3
4f88e22
6b1c9fb
237b73b
0b786c0
c7c9461
e69a7e8
e4f06f9
07264c0
c618a78
4486c75
249febf
65bd090
8a7fcf6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,18 @@ class HiveSqlAstBuilder extends SparkSqlAstBuilder { | |
} | ||
} | ||
|
||
/** | ||
* Create a [[CatalogStorageFormat]]. This is part of the [[CreateTableAsSelect]] command. | ||
*/ | ||
override def visitCreateFileFormat( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add some doc to this. Do you know which Hive test fails on this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nvm I found the test which fail. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. Multiple test cases failed. For example, |
||
ctx: CreateFileFormatContext): CatalogStorageFormat = withOrigin(ctx) { | ||
if (ctx.storageHandler == null) { | ||
typedVisit[CatalogStorageFormat](ctx.fileFormat) | ||
} else { | ||
visitStorageHandler(ctx.storageHandler) | ||
} | ||
} | ||
|
||
/** | ||
* Create a [[CreateTableAsSelect]] command. | ||
*/ | ||
|
@@ -282,6 +294,7 @@ class HiveSqlAstBuilder extends SparkSqlAstBuilder { | |
* Create a [[HiveScriptIOSchema]]. | ||
*/ | ||
override protected def withScriptIOSchema( | ||
ctx: QuerySpecificationContext, | ||
inRowFormat: RowFormatContext, | ||
recordWriter: Token, | ||
outRowFormat: RowFormatContext, | ||
|
@@ -391,7 +404,8 @@ class HiveSqlAstBuilder extends SparkSqlAstBuilder { | |
/** | ||
* Storage Handlers are currently not supported in the statements we support (CTAS). | ||
*/ | ||
override def visitStorageHandler(ctx: StorageHandlerContext): AnyRef = withOrigin(ctx) { | ||
override def visitStorageHandler( | ||
ctx: StorageHandlerContext): CatalogStorageFormat = withOrigin(ctx) { | ||
throw new ParseException("Storage Handlers are currently unsupported.", ctx) | ||
} | ||
|
||
|
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.
Nit: one line (i.e. revert this).
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.
Thanks! After we adding
ctx
, it has 102 characters. Thus, have to split it into two lines.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.
Ok, my bad :)
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.
: )