Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering Error #73

Open
nplevitt opened this issue Jan 30, 2018 · 1 comment
Open

Filtering Error #73

nplevitt opened this issue Jan 30, 2018 · 1 comment

Comments

@nplevitt
Copy link

I'm trying to read data into PySpark using this connector and I'm getting a warning / error when I try to do any sort of filtering, either in the initial select statement or once I have loaded the data.

WARN DataStreamClient: Query insert into external table select <variable> from <table> where "<variable>" IS NOT NULL and "<variable>" > ? has failed.
java.sql.SQLException: line 1, Parameter markers not allowed in this statement.

I've followed the example given in the README and this throws after loading the data:

df = sqlContext.sql("select * from vector_table")
df.filter(df.total_amount > 10000).count()

Any advice on how to fix this would be greatly appreciated

@justinegdelta
Copy link
Contributor

Which version of the spark-vector connector are you using with which version of spark?
It looks like you are using Spark 1.x syntax in the example.
Previously there was an error related to certain filtering queries when performed on columns that allow nulls. Does the query work if the columns in the table do not allow nulls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants