Describe the schema of an alias in this pipeline. Results will be printed to stdout. @param alias to be described @throws IOException if describe fails.
(String alias)
| 250 | * @throws IOException if describe fails. |
| 251 | */ |
| 252 | public void describe(String alias) throws IOException { |
| 253 | if (queries.isEmpty()) { |
| 254 | LOG.info("No bound query to describe"); |
| 255 | return; |
| 256 | } |
| 257 | PigServer pigServer = new PigServer(scriptContext.getPigContext(), false); |
| 258 | registerQueryForDiagnostics(pigServer, queries.get(0)); |
| 259 | pigServer.dumpSchema(alias); |
| 260 | } |
| 261 | |
| 262 | //------------------------------------------------------------------------- |
| 263 |
nothing calls this directly
no test coverage detected