Same as in 1.x you can pass valid subquery as dbtable
argument for example:
...
.option("dbtable", "(SELECT foo, bar FROM schema.tablename) AS tmp")
...
More Related Contents:
- “Incorrect string value” when trying to insert UTF-8 into MySQL via JDBC?
- How to fix: “No suitable driver found for jdbc:mysql://localhost/dbname” error when using pools? [duplicate]
- JDBC batch insert performance
- What is the MySQL JDBC driver connection string?
- Does spark predicate pushdown work with JDBC?
- Am I Using JDBC Connection Pooling?
- SQLException: No suitable driver found [duplicate]
- How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe? [closed]
- Converting mysql table to spark dataset is very slow compared to same from csv file
- Where can I download mysql jdbc jar from? [closed]
- The web application [] appears to have started a thread named [Abandoned connection cleanup thread] com.mysql.jdbc.AbandonedConnectionCleanupThread
- What is the jdbc driver “org.gjt.mm.mysql.Driver” for?
- How can I tell when a MySQL table was last updated?
- Does adding ‘LIMIT 1’ to MySQL queries make them faster when you know there will only be 1 result?
- LOAD DATA INFILE easily convert YYYYMMDD to YYYY-MM-DD?
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/dbname [duplicate]
- When to use SELECT … FOR UPDATE?
- BULK INSERT in MYSQL
- Setting column values as column names in the SQL query result
- MYSQL sum() for distinct rows
- Laravel join with 3 Tables
- phpMyAdmin – can’t connect – invalid setings – ever since I added a root password – locked out
- How to regex in a MySQL query
- How to remove duplicate entries from a mysql db?
- Syntax error on MERGE statement
- MySql Query Replace NULL with Empty String in Select
- how to trim leading zeros from alphanumeric text in mysql function
- What are the max number of allowable parameters per database provider type?
- How to handle a query with special characters / (forward slash) and \ (backslash)
- mySQL query to search all tables within a database for a string?