-
Notifications
You must be signed in to change notification settings - Fork 7
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
[UNSUPPORTED_DATATYPE] Unsupported data type "DATETIME".(line 1, pos 133) #86
Comments
I tried with --currentDateTimeFunction as well. Its not working. |
I OK now. |
@Jace2019 I'm hitting this same problem. Is your last message saying that this is working or you now? `ERROR: Exception Primary Reason: [Databricks]DatabricksJDBCDriver ERROR processing query/statement. Error Code: 0, SQL state: org.apache.hive.service.cli.HiveSQLException: Error running query: [UNSUPPORTED_DATATYPE] org.apache.spark.sql.catalyst.parser.ParseException: == SQL ==
|
I also made it past this. Liquibase wasn't picking up the jar. |
FROM liquibase/liquibase:4.25.0 RUN wget https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.34/DatabricksJDBC42-2.6.34.1058.zip;\ using the dockerfile(part) can working. |
Hi @Jace2019 and @BillCM ,
|
This tool was very useful for me when I was working on a deployment of Databricks, thank you for this.
VERSION:
liquibase=4.25.0
DatabricksJDBC42-2.6.34.1058.zip
liquibase-databricks-1.1.1.jar
ACTION:
2.liquibase update --defaults-file=liquibase.properties --changeLogFile=databricks.sql
p.s. databricks.sql is empty file
ACTION RESULT:
#1. pass
#2. throw error as below. Occurs when LIQUIBASE TRACKING TABLES are created.
ERROR:
Unexpected error running Liquibase: [Databricks]JDBCDriver ERROR processing query/statement. Error Code: 0, SQL state: 0A000, Query: CREATE TABxxx, Error message from Server: org.apache.hive.service.cli.HiveSQLException: Error running query: [UNSUPPORTED_DATATYPE] org.apache.spark.sql.catalyst.parser.ParseException:
[UNSUPPORTED_DATATYPE] Unsupported data type "DATETIME".(line 1, pos 133)
SQL statement:
CREATE TABLE DATABASECHANGELOG (ID VARCHAR(255) NOT NULL, AUTHOR VARCHAR(255) NOT NULL, FILENAME VARCHAR(255) NOT NULL, DATEEXECUTED datetime NOT NULL, ORDEREXECUTED INT NOT NULL, EXECTYPE VARCHAR(10) NOT NULL, MD5SUM VARCHAR(35), DESCRIPTION VARCHAR(255), COMMENTS VARCHAR(255), TAG VARCHAR(255), LIQUIBASE VARCHAR(20), CONTEXTS VARCHAR(255), LABELS VARCHAR(255), DEPLOYMENT_ID VARCHAR(10))
Would you help show any advice ? thanks a lot.
The text was updated successfully, but these errors were encountered: