cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

ayzm
by New Contributor
  • 962 Views
  • 0 replies
  • 0 kudos

[Databricks Connect] Cannot cross line reference when using lambda expression through db-connect

Hirun below code line at spark-shell through db-connectIt throw exception:java.lang.ClassCastException: cannot assign instance of java.lang.invoke.SerializedLambda to field org.apache.spark.rdd.MapPartitionsRDD.f of type scala.Function3 in instance o...

image.png image
  • 962 Views
  • 0 replies
  • 0 kudos
Kaniz
by Community Manager
  • 3268 Views
  • 1 replies
  • 3 kudos
  • 3268 Views
  • 1 replies
  • 3 kudos
Latest Reply
Hubert-Dudek
Esteemed Contributor III
  • 3 kudos

To initialize the Athena client you need to import boto3 libraryclient = boto3.client('athena')You will then execute your query:queryStart = client.start_query_execution( QueryString = 'SELECT * FROM myTable', QueryExecutionContext = { ...

  • 3 kudos
Labels