Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Support skip header and footer for hive CREATE TABLE #845
electrum left a comment •
The test code that creates a file with header/footer using an insert query is not really correct. We shouldn't allow inserting into such tables for two reasons:
So I think we either need to disallow this, or we need to change the textfile writer to write an appropriate number of header/footer lines (maybe a dummy line like
The expected use case for setting these properties is for creating external tables pointing at existing data files that already have a header/footer, so simply disallowing write support seems reasonable.
We should be able to write these tests as a product test.