Skip to content

Commit c7c9461

Browse files
committed
address comments.
1 parent 0b786c0 commit c7c9461

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveSqlParser.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class HiveSqlAstBuilder extends SparkSqlAstBuilder {
141141
if (ctx.storageHandler == null) {
142142
typedVisit[CatalogStorageFormat](ctx.fileFormat)
143143
} else {
144-
typedVisit[CatalogStorageFormat](ctx.storageHandler)
144+
visitStorageHandler(ctx.storageHandler)
145145
}
146146
}
147147

@@ -403,7 +403,8 @@ class HiveSqlAstBuilder extends SparkSqlAstBuilder {
403403
/**
404404
* Storage Handlers are currently not supported in the statements we support (CTAS).
405405
*/
406-
override def visitStorageHandler(ctx: StorageHandlerContext): AnyRef = withOrigin(ctx) {
406+
override def visitStorageHandler(
407+
ctx: StorageHandlerContext): CatalogStorageFormat = withOrigin(ctx) {
407408
throw new ParseException("Storage Handlers are currently unsupported.", ctx)
408409
}
409410

0 commit comments

Comments
 (0)