Skip to content

Commit

Permalink
fix es_read typo (intel-analytics#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
dding3 authored and Wang, Yang committed Sep 26, 2021
1 parent 8a91cc1 commit c89f7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/orca/src/bigdl/orca/data/elastic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def read_df(esConfig, esResource, schema=None):
sqlContext = SQLContext.getOrCreate(sc)
spark = sqlContext.sparkSession

reader = spark.read_df.format("org.elasticsearch.spark.sql")
reader = spark.read.format("org.elasticsearch.spark.sql")

for key in esConfig:
reader.option(key, esConfig[key])
Expand Down

0 comments on commit c89f7b2

Please sign in to comment.