We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
val personDetailsStruct = Field.createStructField("PERSON_DETAILS", Seq( Field("NAME", StringType), Field("AGE", IntType.Signed), Field("SALARY", DecimalType(Precision(38), Scale(5))), Field("CREATION_TIME", TimestampMillisType) ) ) val schema = StructType(personDetailsStruct) val rows = Vector( Vector(Vector("Fred", 50, BigDecimal("50000.99000"), new Timestamp(System.currentTimeMillis()))), Vector(Vector("Gary", 50, BigDecimal("20000.34000"), new Timestamp(System.currentTimeMillis()))), Vector(Vector("Alice", 50, BigDecimal("99999.98000"), new Timestamp(System.currentTimeMillis()))) ) Frame.fromValues(schema, rows) .to(ParquetSink(parquetFilePath))
ParquetSource(parquetFilePath) .withProjection("PERSON_DETAILS.NAME") .toFrame() .collect() .foreach(row => println(row))
ParquetSource(parquetFilePath) .withPredicate(Predicate.or(Predicate.equals("PERSON_DETAILS.NAME", "Alice"), Predicate.equals("PERSON_DETAILS.NAME", "Gary"))) .toFrame() .collect() .foreach(row => println(row))
hive> select person_details.name, person_details.age > from struct_person > where person_details.name in ('Alice', 'Gary' ); OK Gary 50 Alice 50 Time taken: 0.067 seconds, Fetched: 2 row(s) hive>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: