4
4
* this work for additional information regarding copyright ownership.
5
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
6
* (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
7
+ * the License. You may obtain a copy of the License at
8
8
*
9
9
* http://www.apache.org/licenses/LICENSE-2.0
10
10
*
@@ -206,6 +206,7 @@ class ParserUtilsSuite extends SparkFunSuite {
206
206
}
207
207
208
208
test(" string" ) {
209
+ <<<<<<< HEAD
209
210
val dataTypeBuilder = new org.apache.spark.sql.catalyst.parser.DataTypeAstBuilder ()
210
211
val token1 = dataTypeBuilder.visitStringLit(showDbsContext.pattern)
211
212
if (token1 != null ) {
@@ -221,6 +222,15 @@ class ParserUtilsSuite extends SparkFunSuite {
221
222
if (token3 != null ) {
222
223
assert(string(token3) == " /home/user/db" )
223
224
}
225
+ =======
226
+ assert(string(showDbsContext.pattern.stringLiteralValue().STRING_LITERAL ()) ==
227
+ " identifier_with_wildcards" )
228
+ assert(string(createDbContext.commentSpec().get(0 ).stringLit().stringLiteralValue()
229
+ .STRING_LITERAL ()) == " database_comment" )
230
+
231
+ assert(string(createDbContext.locationSpec.asScala.head.stringLit().stringLiteralValue()
232
+ .STRING_LITERAL ()) == " /home/user/db" )
233
+ >>>>>>> d9a53a852b7ef5766390e7ee8408e58ecf579acb
224
234
}
225
235
226
236
test(" position" ) {
@@ -250,8 +260,12 @@ class ParserUtilsSuite extends SparkFunSuite {
250
260
val ctx = createDbContext.locationSpec.asScala.head
251
261
val current = CurrentOrigin .get
252
262
val (location, origin) = withOrigin(ctx) {
263
+ <<<<<<< HEAD
253
264
(Option (new org.apache.spark.sql.catalyst.parser.DataTypeAstBuilder ()
254
265
.visitStringLit(ctx.stringLit())).map(string).getOrElse(" " ), CurrentOrigin .get)
266
+ =======
267
+ (string(ctx.stringLit().stringLiteralValue().STRING_LITERAL ), CurrentOrigin .get)
268
+ >>>>>>> d9a53a852b7ef5766390e7ee8408e58ecf579acb
255
269
}
256
270
assert(location == " /home/user/db" )
257
271
assert(origin == Origin (Some (3 ), Some (27 )))
0 commit comments