| 1. |
Is Piglatin A Strongly Typed Language? If Yes, Then How Did You Come To The Conclusion? |
|
Answer» In a strongly TYPED language, the user has to declare the type of all variables upfront. In Apache Pig, when you describe the schema of the data, it expects the data to come in the same format you mentioned. However, when the schema is not known, the script will adapt to ACTUALLY data types at runtime. So, it can be said that PigLatin is strongly typed in most cases but in rare cases it is GENTLY typed, i.e. it continues to work with data that does not LIVE up to its expectations. In a strongly typed language, the user has to declare the type of all variables upfront. In Apache Pig, when you describe the schema of the data, it expects the data to come in the same format you mentioned. However, when the schema is not known, the script will adapt to actually data types at runtime. So, it can be said that PigLatin is strongly typed in most cases but in rare cases it is gently typed, i.e. it continues to work with data that does not live up to its expectations. |
|