Guest User

Untitled

a guest
Oct 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. create external table aws_billing(
  2. InvoiceId string,
  3. PayerAccountId string,
  4. LinkedAccountId string,
  5. RecordType string,
  6. RecordID int,
  7. BillingPeriodStartDate string,
  8. BillingPeriodEndDate string,
  9. InvoiceDate string,
  10. PayerAccountName string,
  11. LinkedAccountName string,
  12. TaxationAddress string,
  13. PayerPONumber string,
  14. ProductCode string,
  15. ProductName string,
  16. SellerOfRecord string,
  17. UsageType string,
  18. Operation string,
  19. RateId int,
  20. ItemDescription string,
  21. UsageStartDate string,
  22. UsageEndDate string,
  23. UsageQuantity double,
  24. BlendedRate string,
  25. CurrencyCode string,
  26. CostBeforeTax double,
  27. Credits double,
  28. TaxAmount double,
  29. TaxType string,
  30. TotalCost double
  31. )
  32. partitioned by (year string, month string)
  33. row format serde 'com.bizo.hive.serde.csv.CSVSerde'
  34. stored as textfile
  35. location "s3://${awsBillingBucket}/partitioned/"
  36. ;
Add Comment
Please, Sign In to add comment