cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove WHERE 1=0

DanBrown
New Contributor

I am hoping someone can help me remove the WHERE 1=0 that is constantly getting added onto the end of my Query (see below).  Please let me know if I can provide more info here.

This is running a notebook, in Azure Databricks against a cluster that has the IRIS JDBC Driver loaded in the libraries.
The cluster configuration is using Spark 3.5.0
The query that gets passed into IRIS is this (from jdbc log) : SELECT * FROM (select TOP 100 AdjudicatedSvcNum, Charges, CodingSystem,CoverageGrpAuthStatus FROM CLAIMS.AdjudicatedSvcs) SPARK_GEN_SUBQ_24 WHERE 1=0

%python
connectString = "jdbc:IRIS://10.200.10.61:1981/RDD"
user = "*************"
password = "Dlh#36L!aZ"

connectionProperties = {
'user': user,
'password': password,
'driver': 'com.intersystems.jdbc.IRISDriver',
}

cacheDF = (spark.read
.format('jdbc')
.option("autopushdown", "false")
.option('url', connectString)
.option("query", "select TOP 100 AdjudicatedSvcNum, Charges, CodingSystem,CoverageGrpAuthStatus FROM CLAIMS.AdjudicatedSvcs")
.option('user', user)
.option('password', password)
.option('driver','com.intersystems.jdbc.IRISDriver')
.load()
.cache()
)

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group