Indhumathi27 commented on a change in pull request #4222: URL: https://github.com/apache/carbondata/pull/4222#discussion_r718397911
########## File path: docs/spatial-index-guide.md ########## @@ -74,6 +74,30 @@ create table source_index(id BIGINT, latitude long, longitude long) stored by 'c 'SPATIAL_INDEX.mygeohash.gridSize'='50', 'SPATIAL_INDEX.mygeohash.conversionRatio'='1000000'); ``` + +Create spatial table using spark dataframe + + val geoSchema = StructType(Seq(StructField("timevalue", LongType, nullable = true), + StructField("longitude", LongType, nullable = false), + StructField("latitude", LongType, nullable = false))) + + sqlContext.read.option("delimeter", ",").option("header", "true").schema(geoSchema) Review comment: assign this to geodf -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@carbondata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org