We should have a type system testing to test all types of Beam SQL from different types (Avro, JSON, etc.) Imported from Jira [BEAM-4754](https://issues.apache.org/jira/browse/BEAM-4754). Original Jira may contain additional context. Reported by: amaliujia.