Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/17266
  
    The following is the error message. Since we are not escaping in the spark 
master, the behavior (incorrect filtering or the error message) is the same 
from the master branch Spark.
    ```
    java.lang.RuntimeException: Caught Hive MetaException attempting to get 
partition metadata by filter from Hive. You can set the Spark configuration 
setting spark.sql.hive.manageFilesourcePartitions to false to work around this 
problem, however this will result in degraded performance. Please report a bug: 
https://issues.apache.org/jira/browse/SPARK
      at 
org.apache.spark.sql.hive.client.Shim_v0_13.getPartitionsByFilter(HiveShim.scala:612)
    ...
    Caused by: java.lang.reflect.InvocationTargetException: 
org.apache.hadoop.hive.metastore.api.MetaException: Error parsing partition 
filter : line 1:8 mismatched character '<EOF>' expecting '"'
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ...
      at 
org.apache.spark.sql.hive.client.Shim_v0_13.getPartitionsByFilter(HiveShim.scala:599)
      ... 103 more
    Caused by: org.apache.hadoop.hive.metastore.api.MetaException: Error 
parsing partition filter : line 1:8 mismatched character '<EOF>' expecting '"'
      at 
org.apache.hadoop.hive.metastore.ObjectStore.getFilterParser(ObjectStore.java:2569)
      at 
org.apache.hadoop.hive.metastore.ObjectStore.getPartitionsByFilterInternal(ObjectStore.java:2512)
      at 
org.apache.hadoop.hive.metastore.ObjectStore.getPartitionsByFilter(ObjectStore.java:2335)
    ...
    
org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_partitions_by_filter(HiveMetaStore.java:4442)
    ...
    
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.listPartitionsByFilter(HiveMetaStoreClient.java:1103)
    ...
      at 
org.apache.hadoop.hive.ql.metadata.Hive.getPartitionsByFilter(Hive.java:2254)
      ... 108 more
    ```
    
    HIVE-11723 seems to resove that in SemanticAnalyzer. So, I need to try that 
soon.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to