Skip to content

Commit

Permalink
limit sql functions imported
Browse files Browse the repository at this point in the history
  • Loading branch information
addyclement authored Jan 29, 2023
1 parent e6d1ce7 commit 3efdded
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bexley_spark_stream_msk_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from pyspark import SparkConf, SparkContext, sql
from pyspark.sql.functions import from_utc_timestamp
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
from pyspark.sql.functions import from_json, col, explode
from pyspark.sql.functions import from_json, col, explode, lit, concat_ws, substring, when
from ast import literal_eval
from pyspark.sql.types import StructType,StructField, StringType, IntegerType,BooleanType, DateType, DoubleType, MapType, TimestampType, ArrayType
import boto3
Expand Down Expand Up @@ -191,4 +190,4 @@ def foreach_batch(stream_df_04, epoch_id):

stream_df_05.awaitTermination()

stream_df_05.awaitTermination()
stream_df_05.awaitTermination()

0 comments on commit 3efdded

Please sign in to comment.