Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/14132
  
    Hi, @rxin and @gatorsmile . 
    
    While I'm investigating `SQLBuilder` and building more exhaustive 
testcases, I found that `SQLBuilder` seems to be **not exhaustive currently**. 
It's not about `Hint` issue.
    ```scala
    scala> spark.range(10).createOrReplaceTempView("t")
    scala> new org.apache.spark.sql.catalyst.SQLBuilder(sql("select * from 
t")).toSQL
    java.lang.UnsupportedOperationException: unsupported plan Range (0, 10, 
splits=8)
    scala> new org.apache.spark.sql.catalyst.SQLBuilder(sql("select * from 
parquet.`examples/src/main/resources/users.parquet`")).toSQL
    java.lang.UnsupportedOperationException: unsupported plan 
Relation[name#21,favorite_color#22,favorite_numbers#23] parquet
    ```
    
    I tried to make this PR as similar as possible with `broadcast()` 
behaviors, but it seems to be the beyond of the scope in `SQLBuilder`. We can 
not put all of them into this PR since they are not `Hint`.


---
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