sir.
my database is SQLServer.
But the Layer object I query is created by new featureservice url.
According to the test result, the featureservice layer seems to have some problems with this kind of query, some layers are valid, some will prompt the sql statement is invalid.