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

Unable to write list/array type data #377

Open
akhileshpachipulusu-inviz-DataScience opened this issue Mar 22, 2024 · 1 comment
Open

Unable to write list/array type data #377

akhileshpachipulusu-inviz-DataScience opened this issue Mar 22, 2024 · 1 comment

Comments

@akhileshpachipulusu-inviz-DataScience
Copy link

I am trying to save a pandas dataframe to a table which contains columns of type list of strings (array). I am doing it using df.to_sql() using sqlalchemy engine. It doesn't seem to be working. I am getting the following error
(databricks.sql.exc.NotSupportedError) Could not infer parameter type from value: ['11th gen laptop', 'natural silver laptop', '1tb and 256gb laptop', '6n038pa#acj laptop', 'intel core i3 laptop', 'fhd display laptop', 'intel uhd laptop', '15s-dr3506tu laptop', '8gb ram laptop', 'hp laptop', 'windows 11 home laptop'] - <class 'list'>

When I use use_inline_params=True, I am getting the following error
(databricks.sql.exc.ServerOperationError) [UNBOUND_SQL_PARAMETER] Found the unbound parameter

Details:
databricks-sql-connector[sqlalchemy]==3.1.1
Python 3.8.10
Databricks Serverless SQL hive_metastore catalog

@kravets-levko
Copy link
Collaborator

Hi @akhileshpachipulusu-inviz-DataScience! Can you please provide some more details to help us with debugging:

  • are you using an AWS or Azure instance?
  • are you using Warehouse or Compute cluster? Which DBR version it runs?
  • please provide a minimal code snippets for both cases (native and inline parameters) that reproduces you issue.

Thank you!

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