You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Deegue (JIRA)" <ji...@apache.org> on 2019/01/09 03:28:00 UTC

[jira] [Created] (SPARK-26577) Add input optimizer when reading Hive table by SparkSQL

Deegue created SPARK-26577:
------------------------------

             Summary: Add input optimizer when reading Hive table by SparkSQL
                 Key: SPARK-26577
                 URL: https://issues.apache.org/jira/browse/SPARK-26577
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.4.1
            Reporter: Deegue


When using SparkSQL, for example the ThriftServer, if we set

`spark.sql.hive.fileInputFormat.enabled=true`

we can optimize the InputFormat to CombineTextInputFormat automatically if it's TextInputFormat before. And we can also change the max/min size of input splits by setting, for example

`spark.sql.hive.fileInputFormat.split.maxsize=268435456`

`spark.sql.hive.fileInputFormat.split.minsize=134217728`

 

Otherwise, we have to modify Hive Configs and structure of tables.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org