pan3793 commented on issue #2348:
URL: https://github.com/apache/iceberg/issues/2348#issuecomment-873822252


   > ... currently only support a very limited set of Spark expressions as call 
arguments.
   
   Hi, @RussellSpitzer, before finding the final solution to support generic 
expressions as call args, could you please list the supported expressions now? 
   
   The examples in documents still not work now (iceberg master branch with 
spark 3.1).
   
   ```
   E, statement: CALL iceberg.system.expire_snapshots(table => 
'cdc_wenjuan.member', older_than => now(), retain_last => 1), time taken: 0.004 
seconds
   Error: Error operating EXECUTE_STATEMENT: 
org.apache.spark.sql.catalyst.parser.extensions.IcebergParseException:
   mismatched input '(' expecting STRING(line 1, pos 85)
   
   == SQL ==
   CALL iceberg.system.expire_snapshots(table => 'cdc_wenjuan.member', 
older_than => now(), retain_last => 1)
   
-------------------------------------------------------------------------------------^^^
   
        at 
org.apache.spark.sql.catalyst.parser.extensions.IcebergParseException.withCommand(IcebergSparkSqlExtensionsParser.scala:294)
        at 
org.apache.spark.sql.catalyst.parser.extensions.IcebergSparkSqlExtensionsParser.parse(IcebergSparkSqlExtensionsParser.scala:158)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to