SQL converter
Rewrite quoting, escaping, row limits and function names between 16 dialects, with a list of what it refused to guess at.
Apache Spark SQL query
MariaDB query
What it changed
current timestampNOW()1 place
What you still need to do
Anything left in this list was recognised and left as it was on purpose. A function renamed to one that takes its arguments in a different order produces SQL that runs and returns the wrong rows, which is worse than SQL that fails.
Converting Apache Spark SQL to MariaDB: Key Syntax Differences
Translating SQL queries between Apache Spark SQL and MariaDB involves subtle dialect differences that standard text find-and-replace often misses. Everything below is processed entirely in your browser using SQLParity.
Identifier Quoting
Apache Spark SQL: `name`
MariaDB: `name`
String Literal Escaping
Apache Spark SQL: Quotes are escaped with backslash (\'), backslash is an escape character.
MariaDB: Quotes are doubled (''), backslash is an escape character.
Null-Safe Equality
MariaDB: NOT (colA <=> colB)
Why In-Browser SQL Conversion Matters
Database migrations frequently involve proprietary business logic, sensitive table schemas, and production column names. When converting SQL between Apache Spark SQL and MariaDB, SQLParity executes all parsing, tokenization, and code rewriting locally in your browser. Zero queries or schemas are transmitted to remote servers.